rpcapi

package
v0.0.0-...-c01f1ba Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NO_ERROR = iota
	USER_EXISTS
	USER_NON_EXISTS
	PARAMS_ERROR
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRpc

type UserRpc struct {
	Users u.UserMap
	// contains filtered or unexported fields
}

func New

func New(rpcAddr string, redisOpts ...string) *UserRpc

func (*UserRpc) AddFilter

func (r *UserRpc) AddFilter(args *R.Filters, reply *R.CallReply) error

func (*UserRpc) AddUser

func (r *UserRpc) AddUser(args *R.NewUserArgs, reply *R.CallReply) error

func (*UserRpc) DeleteUser

func (r *UserRpc) DeleteUser(args *R.CommonArgs, reply *R.CallReply) error

func (*UserRpc) FastRestore

func (r *UserRpc) FastRestore()

func (*UserRpc) GetAll

func (r *UserRpc) GetAll() R.TrafficReply

func (*UserRpc) GetUser

func (r *UserRpc) GetUser(args *R.CommonArgs, reply *R.TrafficReply) error

func (*UserRpc) GetUserInfo

func (r *UserRpc) GetUserInfo(name string) (string, string, string, error)

func (*UserRpc) Modify

func (r *UserRpc) Modify(args *R.CommonArgs, reply *R.CallReply) error

func (*UserRpc) RedisClose

func (r *UserRpc) RedisClose()

func (*UserRpc) ResetAll

func (r *UserRpc) ResetAll(args *R.NoArgs, reply *R.CallReply) error

func (*UserRpc) Restore

func (r *UserRpc) Restore(args *R.NoArgs, reply *R.CallReply) error

func (*UserRpc) StartUser

func (r *UserRpc) StartUser(args *R.CommonArgs, reply *R.CallReply) error

func (*UserRpc) StopUser

func (r *UserRpc) StopUser(args *R.CommonArgs, reply *R.CallReply) error

func (*UserRpc) UpgradeFilter

func (r *UserRpc) UpgradeFilter(args *R.NoArgs, reply *R.CallReply) error

Jump to

Keyboard shortcuts

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