pkg

package
v0.0.0-...-c8335d1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: GPL-3.0, GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServerName = "RpcServer"
	Addr       = ":1234"
)
View Source
var File_hello_proto protoreflect.FileDescriptor

Functions

func Register

func Register(svr interface{}) error

Types

type Client

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

func DialServer

func DialServer() (*Client, error)

func (*Client) Request

func (c *Client) Request(rsp *String) error

type RpcServer

type RpcServer interface {
	Server(request string, rsp *string) error
}

type String

type String struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*String) Descriptor deprecated

func (*String) Descriptor() ([]byte, []int)

Deprecated: Use String.ProtoReflect.Descriptor instead.

func (*String) GetValue

func (x *String) GetValue() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) ProtoReflect

func (x *String) ProtoReflect() protoreflect.Message

func (*String) Reset

func (x *String) Reset()

func (*String) String

func (x *String) String() string

Jump to

Keyboard shortcuts

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