Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDGenerator ¶
type IDGenerator interface {
NewID() string
}
IDGenerator interface for creating new IDs
type NewSessionDetails ¶
type NewSessionDetails struct {
Email string `json:"email"`
}
NewSessionDetails is the structure of the request needed to create a session
type Session ¶
type Session struct { ID string `json:"id"` Email string `json:"email"` Start time.Time `json:"start"` LastAccessed time.Time `json:"lastAccessed"` }
Session defines the structure required for a session
func (*Session) MarshalJSON ¶
MarshalJSON used to marshal Session object for outgoing requests
Click to show internal directories.
Click to hide internal directories.