Documentation
¶
Index ¶
- func CheckLiveRoom(liveID int64, l *liveservice.Client) bool
- func GenCustomToken(id interface{}, expiresTime int64) (string, error)
- func GenToken(uid int64) (string, error)
- func GetUID(ctx *app.RequestContext) (int64, error)
- func Md5(str string, salt string) string
- type CircularBuffer
- type CustomClaims
- type Limiter
- type MyClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLiveRoom ¶
func CheckLiveRoom(liveID int64, l *liveservice.Client) bool
func GenCustomToken ¶
Types ¶
type CircularBuffer ¶
type CircularBuffer struct {
// contains filtered or unexported fields
}
func NewCircularBuffer ¶
func NewCircularBuffer(size int) *CircularBuffer
func (*CircularBuffer) Add ¶
func (cb *CircularBuffer) Add(timestamp int64)
func (*CircularBuffer) Count ¶
func (cb *CircularBuffer) Count() int
func (*CircularBuffer) RemoveExpired ¶
func (cb *CircularBuffer) RemoveExpired(expirationTime int64)
type CustomClaims ¶
type CustomClaims struct { ID interface{} jwt.RegisteredClaims }
func ParseCustomToken ¶
func ParseCustomToken(tokenStr string) (*CustomClaims, error)
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
func (*Limiter) ShouldSendWord ¶
Click to show internal directories.
Click to hide internal directories.