hxrpc

package
v0.0.0-...-63b2ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMyServiceOneServer

func RegisterMyServiceOneServer(s *grpc.Server, srv MyServiceOneServer)

Types

type HelloRequest

type HelloRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HelloRequest) Descriptor

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

func (*HelloRequest) GetName

func (m *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) Reset

func (m *HelloRequest) Reset()

func (*HelloRequest) String

func (m *HelloRequest) String() string

func (*HelloRequest) XXX_DiscardUnknown

func (m *HelloRequest) XXX_DiscardUnknown()

func (*HelloRequest) XXX_Marshal

func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HelloRequest) XXX_Merge

func (m *HelloRequest) XXX_Merge(src proto.Message)

func (*HelloRequest) XXX_Size

func (m *HelloRequest) XXX_Size() int

func (*HelloRequest) XXX_Unmarshal

func (m *HelloRequest) XXX_Unmarshal(b []byte) error

type HelloResponse

type HelloResponse struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HelloResponse) Descriptor

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

func (*HelloResponse) GetMessage

func (m *HelloResponse) GetMessage() string

func (*HelloResponse) ProtoMessage

func (*HelloResponse) ProtoMessage()

func (*HelloResponse) Reset

func (m *HelloResponse) Reset()

func (*HelloResponse) String

func (m *HelloResponse) String() string

func (*HelloResponse) XXX_DiscardUnknown

func (m *HelloResponse) XXX_DiscardUnknown()

func (*HelloResponse) XXX_Marshal

func (m *HelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HelloResponse) XXX_Merge

func (m *HelloResponse) XXX_Merge(src proto.Message)

func (*HelloResponse) XXX_Size

func (m *HelloResponse) XXX_Size() int

func (*HelloResponse) XXX_Unmarshal

func (m *HelloResponse) XXX_Unmarshal(b []byte) error

type MyServiceOneClient

type MyServiceOneClient interface {
	SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
	NotifyMsg(ctx context.Context, in *Notify, opts ...grpc.CallOption) (*NotifyResp, error)
}

MyServiceOneClient is the client API for MyServiceOne service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMyServiceOneClient

func NewMyServiceOneClient(cc *grpc.ClientConn) MyServiceOneClient

type MyServiceOneServer

type MyServiceOneServer interface {
	SayHello(context.Context, *HelloRequest) (*HelloResponse, error)
	NotifyMsg(context.Context, *Notify) (*NotifyResp, error)
}

MyServiceOneServer is the server API for MyServiceOne service.

type Notify

type Notify struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Notify) Descriptor

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

func (*Notify) GetMsg

func (m *Notify) GetMsg() string

func (*Notify) ProtoMessage

func (*Notify) ProtoMessage()

func (*Notify) Reset

func (m *Notify) Reset()

func (*Notify) String

func (m *Notify) String() string

func (*Notify) XXX_DiscardUnknown

func (m *Notify) XXX_DiscardUnknown()

func (*Notify) XXX_Marshal

func (m *Notify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Notify) XXX_Merge

func (m *Notify) XXX_Merge(src proto.Message)

func (*Notify) XXX_Size

func (m *Notify) XXX_Size() int

func (*Notify) XXX_Unmarshal

func (m *Notify) XXX_Unmarshal(b []byte) error

type NotifyResp

type NotifyResp struct {
	Resp                 string   `protobuf:"bytes,1,opt,name=resp,proto3" json:"resp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NotifyResp) Descriptor

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

func (*NotifyResp) GetResp

func (m *NotifyResp) GetResp() string

func (*NotifyResp) ProtoMessage

func (*NotifyResp) ProtoMessage()

func (*NotifyResp) Reset

func (m *NotifyResp) Reset()

func (*NotifyResp) String

func (m *NotifyResp) String() string

func (*NotifyResp) XXX_DiscardUnknown

func (m *NotifyResp) XXX_DiscardUnknown()

func (*NotifyResp) XXX_Marshal

func (m *NotifyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotifyResp) XXX_Merge

func (m *NotifyResp) XXX_Merge(src proto.Message)

func (*NotifyResp) XXX_Size

func (m *NotifyResp) XXX_Size() int

func (*NotifyResp) XXX_Unmarshal

func (m *NotifyResp) XXX_Unmarshal(b []byte) error

type UnimplementedMyServiceOneServer

type UnimplementedMyServiceOneServer struct {
}

UnimplementedMyServiceOneServer can be embedded to have forward compatible implementations.

func (*UnimplementedMyServiceOneServer) NotifyMsg

func (*UnimplementedMyServiceOneServer) SayHello

Jump to

Keyboard shortcuts

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