Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientKey ¶
Types ¶
type ClientInfo ¶
type ClientInfo struct { Version string `json:"ver"` Device ss.DeviceID `json:"device"` FCMToken *ss.FirebaseCloudMessagingToken `json:"fcm,omitempty"` Key db.DeviceCryptoKey `json:"key"` }
func NewClientInfo ¶
func NewClientInfo( getHeader func(name string) (string, bool), ) ( result ClientInfo, err error, )
func (ClientInfo) MarshalLogMsg ¶
func (info ClientInfo) MarshalLogMsg(destination map[string]interface{})
type Request ¶
type Request struct { ss.NoCopyImpl ResponseBody interface{} // contains filtered or unexported fields }
Request implements request method for output gateway.
func NewRequest ¶
func NewRequest( gateway lambda.Gateway, log ss.LogSession, defaultResponse interface{}, ) Request
NewRequest creates new Request instance.
func (*Request) Respond ¶
func (request *Request) Respond(response interface{})
Response responses to request with given data.
func (*Request) UnmarshalRequest ¶
UnmarshalRequest parses request from a string.
Click to show internal directories.
Click to hide internal directories.