netrpc

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type string // 网络类型. tcp / udp / http
	Host string // 服务器地址.
	Port int32  // 服务器端口.
}

Config TODO

type IArg

type IArg interface {
	GetData() interface{}
}

IArg TODO

type IReply

type IReply interface {
	GetData() interface{}
}

IReply TODO

type Proxy

type Proxy struct {
}

Proxy TODO

func (*Proxy) Read

func (owner *Proxy) Read(arg *RPCArgs, reply *RPCReply) error

Read 读取数据.

func (*Proxy) Write

func (owner *Proxy) Write(arg *RPCArgs, reply *RPCReply) error

Write 写入数据.

type RPCArgs

type RPCArgs struct {
	Data interface{}
}

RPCArgs TODO

type RPCReply

type RPCReply struct {
	Data interface{}
}

RPCReply TODO

type Service

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

Service TODO

func NewService

func NewService(conf Config) *Service

NewService TODO

func (*Service) Start

func (owner *Service) Start()

Start TODO

func (*Service) Stop

func (owner *Service) Stop()

Stop TODO

Jump to

Keyboard shortcuts

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