Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth interface { GetAdminToken() (string, error) GetUserToken(string) (string, error) GetThingToken(string) (string, error) ValidateToken(string) (bool, error) GetClaimsToken(string) (*AuthClaim, error) }
func New ¶
func New(c ServiceConf) Auth
type AuthClaim ¶
type AuthClaim struct { Role string `json:"Role"` jwt.StandardClaims }
type ServiceConf ¶
Click to show internal directories.
Click to hide internal directories.