Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct { AuthId string Key string Username string ValidFrom time.Time Lifetime time.Duration Uid string Grants Grants `json:"grants"` }
func (*AccessToken) AddVoiceGrants ¶
func (acctkn *AccessToken) AddVoiceGrants(grants VoiceGrants)
func (*AccessToken) ToJwt ¶
func (acctkn *AccessToken) ToJwt() string
type Grants ¶
type Grants struct {
Voice VoiceGrants `json:"voice"`
}
type JwtClaims ¶
type JwtClaims struct { jwt.RegisteredClaims Grants Grants `json:"grants"` }
type VoiceGrants ¶
Click to show internal directories.
Click to hide internal directories.