server

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func InitWebApi

func InitWebApi()

Types

type BaseCfg

type BaseCfg struct {
}

type Config

type Config struct {
	WebApi   WebApiCfg
	Base     BaseCfg
	SyncTime time.Duration

	V2rayClientAddr string
	V2rayTag        string

	LogPath string
}

type UserManager

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

func NewUserManager

func NewUserManager() ([]*UserManager, error)

func (*UserManager) AddUser

func (u *UserManager) AddUser(user musdk.User)

func (*UserManager) Down

func (u *UserManager) Down()

func (*UserManager) Exist

func (u *UserManager) Exist(user musdk.User) bool

func (*UserManager) GetUser

func (u *UserManager) GetUser(id int64) (musdk.User, bool)

func (*UserManager) RemoveUser

func (u *UserManager) RemoveUser(user musdk.User)

func (*UserManager) Run

func (u *UserManager) Run() error

type WebApiCfg

type WebApiCfg struct {
	Url    string
	Token  string
	NodeId int
}

Jump to

Keyboard shortcuts

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