Documentation
¶
Index ¶
- func DeleteTokeByToken(token string) error
- func DeleteToken(app, device, username string) error
- func GetKey(app, device, username string) string
- func GetToken(key string) (string, error)
- func New(app, device, username string, payload et.Json, duration time.Duration) (string, error)
- func NewAppTagToken(app, device, tag string, duration time.Duration) (string, error)
- func NewAppToken(app, device string, duration time.Duration) (string, error)
- func NewAuthentication(app, device, username string, duration time.Duration) (string, error)
- func NewAuthorization(app, device, username, tenantId, profileTp string, duration time.Duration) (string, error)
- func NewEphemeralToken(app, device, username string, payload et.Json, duration time.Duration) (string, error)
- func SetToken(app, device, username, token string, duration time.Duration) error
- func Validate(token string) (*claim.Claim, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteTokeByToken ¶
* * DeleteTokeByToken * @param token string * @return error *
func DeleteToken ¶
* * DeleteToken * @param app, device, username string * @return error *
func New ¶
* * New * @param app, device, username string, payload et.Json, duration time.Duration * @return string, error *
func NewAppTagToken ¶
* * NewAppTagToken * @param app, device, tag string, duration time.Duration * @return string, error *
func NewAppToken ¶
* * NewAppToken * @param app, device string, duration time.Duration * @return string, error *
func NewAuthentication ¶
* * NewAuthentication * @param app, device, username string, duration time.Duration * @return string, error *
func NewAuthorization ¶
func NewAuthorization(app, device, username, tenantId, profileTp string, duration time.Duration) (string, error)
* * NewAuthorization * @param app, device, username, tenantId, profileTp string, duration time.Duration * @return string, error *
func NewEphemeralToken ¶
func NewEphemeralToken(app, device, username string, payload et.Json, duration time.Duration) (string, error)
* * NewEphemeralToken * @param app, device, username string, duration time.Duration * @return string, error *
Types ¶
This section is empty.