dofussvc

package
v0.0.0-...-3376678 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MPL-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(store dofus.Store) (*Service, error)

func (Service) Account

func (svc Service) Account(ctx context.Context, id string) (account dofus.Account, err error)

func (Service) AccountByName

func (svc Service) AccountByName(ctx context.Context, name string) (account dofus.Account, err error)

func (Service) Accounts

func (svc Service) Accounts(ctx context.Context) (accounts map[string]dofus.Account, err error)

func (Service) AccountsByUserId

func (svc Service) AccountsByUserId(ctx context.Context, userId string) (accounts map[string]dofus.Account, err error)

func (Service) CreateAccount

func (svc Service) CreateAccount(ctx context.Context, account dofus.Account) (id string, err error)

func (Service) CreateUser

func (svc Service) CreateUser(ctx context.Context, user dofus.User) (id string, err error)

func (Service) SetAccountLastAccessAndLastIP

func (svc Service) SetAccountLastAccessAndLastIP(ctx context.Context, id string, lastAccess time.Time, lastIP string) error

func (Service) User

func (svc Service) User(ctx context.Context, id string) (user dofus.User, err error)

func (Service) UserAddChatChannel

func (svc Service) UserAddChatChannel(ctx context.Context, id string, chatChannels ...dofustyp.ChatChannel) error

func (Service) UserByNickname

func (svc Service) UserByNickname(ctx context.Context, nickname string) (user dofus.User, err error)

func (Service) UserRemoveChatChannel

func (svc Service) UserRemoveChatChannel(ctx context.Context, id string, chatChannels ...dofustyp.ChatChannel) error

func (Service) Users

func (svc Service) Users(ctx context.Context) (users map[string]dofus.User, err error)

Jump to

Keyboard shortcuts

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