lpc

package
v0.0.1-f37a881 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateUserService = "Rpc.CreateUser"
	RemoveUserService = "Rpc.RemoveUser"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RPC

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

func (*RPC) Dial

func (p *RPC) Dial() error

func (*RPC) Listen

func (p *RPC) Listen() error

func (*RPC) Send

func (p *RPC) Send(name string, action func() interface{}) (string, error)

type RpcService

type RpcService struct{}

func (*RpcService) CreateUser

func (r *RpcService) CreateUser(req interface{}, res *string) error

func (*RpcService) RemoveUser

func (r *RpcService) RemoveUser(req interface{}, res *string) error

type UserLPCServiceObject

type UserLPCServiceObject struct {
	Email    string `json:"email"`
	Password string `json:"password"`
	Role     int    `json:"role"`
}

Jump to

Keyboard shortcuts

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