Documentation ¶
Index ¶
- Constants
- func GetEventHeader(headerName string, event events.APIGatewayProxyRequest) []string
- type Address
- type Attorney
- type AttorneyStatus
- type Change
- type Client
- type Date
- type Donor
- type DynamoDBClient
- type FieldError
- type JWTVerifier
- type LogEvent
- type Lpa
- type LpaInit
- type LpaStatus
- type Person
- type Problem
- type Update
Constants ¶
View Source
const ( LpaStatusProcessing = LpaStatus("processing") LpaStatusRegistered = LpaStatus("registered") )
View Source
const ( AttorneyStatusActive = AttorneyStatus("active") AttorneyStatusReplacement = AttorneyStatus("replacement") AttorneyStatusRemoved = AttorneyStatus("removed") )
Variables ¶
This section is empty.
Functions ¶
func GetEventHeader ¶
func GetEventHeader(headerName string, event events.APIGatewayProxyRequest) []string
Types ¶
type Attorney ¶
type Attorney struct { Person Status AttorneyStatus `json:"status" dynamodbav:""` }
type AttorneyStatus ¶
type AttorneyStatus string
func (AttorneyStatus) IsValid ¶
func (a AttorneyStatus) IsValid() bool
type Change ¶
type Change struct { Key string `json:"key"` Old interface{} `json:"old"` New interface{} `json:"new"` }
type Date ¶
func (*Date) UnmarshalJSON ¶
type DynamoDBClient ¶
type DynamoDBClient struct {
// contains filtered or unexported fields
}
func NewDynamoDB ¶
func NewDynamoDB(tableName string) DynamoDBClient
type FieldError ¶
type JWTVerifier ¶
type JWTVerifier struct {
// contains filtered or unexported fields
}
func NewJWTVerifier ¶
func NewJWTVerifier() JWTVerifier
func (JWTVerifier) VerifyHeader ¶
func (v JWTVerifier) VerifyHeader(event events.APIGatewayProxyRequest) bool
verify JWT from event header returns true if verified, false otherwise
func (JWTVerifier) VerifyToken ¶
func (v JWTVerifier) VerifyToken(tokenStr string) error
tokenStr is the JWT token, minus any "Bearer: " prefix
Click to show internal directories.
Click to hide internal directories.