Documentation ¶
Index ¶
- func IsValidSessionConfig(webhookID *string, webhookURL *string, metadata map[string]*string) (valid bool, invalidReason string)
- func IsValidSessionID(id string) bool
- func IsValidSessionKey(key string) bool
- func MarkEventSeen(st store.Store, sessionID, eventID string) (updated bool, err error)
- type Event
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidSessionConfig ¶
func IsValidSessionConfig( webhookID *string, webhookURL *string, metadata map[string]*string, ) (valid bool, invalidReason string)
IsValidSessionConfig - check validty of session config parameters
func IsValidSessionID ¶
IsValidSessionID - check validity of a given session ID
func IsValidSessionKey ¶
IsValidSessionKey - check validity of a given session key
Types ¶
type Event ¶
Event - event published by a host or guest
func LoadEvent ¶
LoadEvent - load an event from the store. if an event with a given ID is not found in the store, (nil, nil) is returned
type Session ¶
type Session struct { ID string `json:"id"` Key string `json:"key"` Linked bool `json:"linked"` WebhookID string `json:"webhookId,omitempty"` WebhookURL string `json:"webhookUrl,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` }
Session - rpc session
func LoadSession ¶
LoadSession - load a session from the store. if a session with a given ID is not found in the store, (nil, nil) is returned
Click to show internal directories.
Click to hide internal directories.