Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthClaims ¶
type AuthClaims struct { ID uint64 `json:"i,omitempty"` Uid uint64 `json:"u,omitempty"` Iss string `json:"s,omitempty"` R string `json:"r,omitempty"` Exp int64 `json:"e,omitempty"` Nonce string `json:"j,omitempty"` }
func (AuthClaims) Valid ¶
func (a AuthClaims) Valid() error
type Config ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) FromContext ¶
func (s *Service) FromContext(ctx context.Context) *AuthClaims
func (*Service) SetContext ¶
Click to show internal directories.
Click to hide internal directories.