user

package
v0.0.0-...-df93b5d Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClient

func SetClient(c Client)

Types

type Client

type Client interface {
	GetUsers() ([]User, error)
	LogNodeOnlineUser(onlineUserCount int) error
	UpdateNodeInfo() error
}

func GetClient

func GetClient() Client

func NewClient

func NewClient() Client

type User

type User interface {
	GetPort() int
	GetPasswd() string
	GetMethod() string
	IsEnable() bool
	GetCipher() (*ss.Cipher, error, bool)
	UpdateTraffic(storageSize int) error
	GetUserInfo() UserInfo
}

type UserInfo

type UserInfo struct {
	Passwd string
	Port   int
	Method string
}

Jump to

Keyboard shortcuts

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