Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SecretKey = "somekey"
Variable contain SecretKey. SecretKey should be loaded from secret key file from Config.
View Source
var TokenLifetime = int64(10)
Time to live valid token. After this period - token will be expired.
Functions ¶
Types ¶
type Error ¶
type Error struct { Type string `json:"type"` // The type of error returned. Can be … TODO. Message string `json:"message"` // optional A human-readable message giving more details about the error. If something needs to be shown to end-users, this should be it. Param string `json:"param"` // The parameter the error relates to if the error is parameter-specific. }
Click to show internal directories.
Click to hide internal directories.