wsrepository

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rep

type Rep struct {
	Redis              *redis.Redis
	SendMsgPeriodLimit *limit.PeriodLimit
	// contains filtered or unexported fields
}

func NewRep

func NewRep(svcCtx *wssvc.ServiceContext) *Rep

func (*Rep) AddUserConn

func (r *Rep) AddUserConn(uid string, platform string) error

func (*Rep) DelUserConn

func (r *Rep) DelUserConn(ctx context.Context, uid string, platform string) error

func (*Rep) GetUserConn added in v1.0.2

func (r *Rep) GetUserConn(ctx context.Context, uid string) (map[string]string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL