ex

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FreeSliceMap added in v0.1.34

func FreeSliceMap(sliceMap *util.SliceMap[*User])

func GetSliceMap added in v0.1.34

func GetSliceMap() *util.SliceMap[*User]

Types

type HttpMessage

type HttpMessage struct {
	From string
	Body string
}

type Server

type Server struct {
	core.IHttpServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) Init

func (server *Server) Init(context *core.Context)

func (*Server) Name

func (server *Server) Name() string

func (*Server) Start

func (server *Server) Start() error

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore() *Store

func (*Store) Delete

func (s *Store) Delete(username string)

func (*Store) LoadOrStore

func (s *Store) LoadOrStore(cl *client, username string) (*client, bool)

func (*Store) RangeClient

func (s *Store) RangeClient(f func(c *client))

type User

type User struct {
	user.IUser
	// contains filtered or unexported fields
}

func NewUser

func NewUser(username string, id string, queue *util.Queue, context *core.Context, writer http.ResponseWriter, re *http.Request) *User

func (*User) Close

func (u *User) Close()

func (*User) CreateTime

func (u *User) CreateTime() *time.Time

func (*User) GetGroupIds

func (u *User) GetGroupIds() []string

func (*User) GetId

func (u *User) GetId() string

func (*User) GetMachineId added in v0.1.1

func (u *User) GetMachineId() string

func (*User) GetOrderTime added in v0.1.1

func (u *User) GetOrderTime() *time.Time

func (*User) GetPriority added in v0.1.1

func (u *User) GetPriority() int

func (*User) GetRemoteAddress

func (u *User) GetRemoteAddress() string

func (*User) GetUsername

func (u *User) GetUsername() string

func (*User) LastLiveTime

func (u *User) LastLiveTime() *time.Time

func (*User) RefreshExpired added in v0.1.32

func (u *User) RefreshExpired()

func (*User) SetUsername

func (u *User) SetUsername(username string)

func (*User) WriteSyncMessage added in v0.1.35

func (u *User) WriteSyncMessage(iMessage message.IMessage) (bool, error)

Jump to

Keyboard shortcuts

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