Documentation ¶
Index ¶
- type Account
- type AccountCreate
- type CommsChannel
- type Request
- func (r Request) Create() (Response, error)
- func (r Request) CreateHandler(w http.ResponseWriter, hr *http.Request)
- func (r Request) Delete() (Response, error)
- func (r Request) DeleteHandler(w http.ResponseWriter, hr *http.Request)
- func (r Request) Login() (Response, error)
- func (r Request) LoginHandler(w http.ResponseWriter, hr *http.Request)
- func (r Request) Parse() (Response, error)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID string `json:"id"` Name string `json:"name"` CommsChannels []CommsChannel `json:"comms_channels"` Parent *Account `json:"parent"` }
func GetAccountDetails ¶
type AccountCreate ¶
type CommsChannel ¶
type Request ¶
type Request struct { Config config.Config Logger zap.SugaredLogger Request events.APIGatewayProxyRequest Account AccountCreate }
func NewHTTPRequest ¶
func NewHTTPRequest(c config.Config, l zap.SugaredLogger) *Request
func NewLambdaRequest ¶
func NewLambdaRequest(c config.Config, l zap.SugaredLogger, r events.APIGatewayProxyRequest) *Request
func (Request) CreateHandler ¶
func (r Request) CreateHandler(w http.ResponseWriter, hr *http.Request)
func (Request) DeleteHandler ¶
func (r Request) DeleteHandler(w http.ResponseWriter, hr *http.Request)
func (Request) LoginHandler ¶
func (r Request) LoginHandler(w http.ResponseWriter, hr *http.Request)
Click to show internal directories.
Click to hide internal directories.