Home Download Docs Code Community
     1	/*
     2	Copyright 2017 The Perkeep Authors
     3	
     4	Licensed under the Apache License, Version 2.0 (the "License");
     5	you may not use this file except in compliance with the License.
     6	You may obtain a copy of the License at
     7	
     8	     http://www.apache.org/licenses/LICENSE-2.0
     9	Unless required by applicable law or agreed to in writing, software
    10	distributed under the License is distributed on an "AS IS" BASIS,
    11	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12	See the License for the specific language governing permissions and
    13	limitations under the License.
    14	*/
    15	
    16	package plaid
    17	
    18	type Institution int
    19	
    20	const (
    21		AMEX = iota
    22		BBT
    23		BOFA
    24		CAPONE
    25		SCHWAB
    26		CHASE
    27		CITI
    28		FIDELITY
    29		NFCU
    30		PNC
    31		SUNTRUST
    32		TD
    33		US
    34		USAA
    35		WELLS
    36	)
    37	
    38	type InstitutionNames struct {
    39		DisplayName string
    40		CodeName    string
    41	}
    42	
    43	type InstitutionNameMap map[Institution]InstitutionNames
    44	
    45	var supportedInstitutions InstitutionNameMap
    46	
    47	func init() {
    48		supportedInstitutions = InstitutionNameMap{
    49			AMEX:     {"Amex", "amex"},
    50			BBT:      {"BB&T", "bbt"},
    51			BOFA:     {"Bank of America", "bofa"},
    52			CAPONE:   {"Capital One", "capone"},
    53			CITI:     {"Citi", "citi"},
    54			SCHWAB:   {"Chales Schwab", "schwab"},
    55			CHASE:    {"Chase", "chase"},
    56			FIDELITY: {"Fidelity", "fidelity"},
    57			NFCU:     {"Navy FCU", "nfcu"},
    58			PNC:      {"PNC", "pnc"},
    59			SUNTRUST: {"Suntrust", "suntrust"},
    60			TD:       {"TD Bank", "td"},
    61			US:       {"US Bank", "us"},
    62			USAA:     {"USAA", "usaa"},
    63			WELLS:    {"Wells Fargo", "wells"},
    64		}
    65	}
Website layout inspired by memcached.
Content by the authors.