pb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSayServiceServer

func RegisterSayServiceServer(s *grpc.Server, srv SayServiceServer)

Types

type SayGoodbyRequest

type SayGoodbyRequest struct {
	Lang                 string   `protobuf:"bytes,1,opt,name=lang,proto3" json:"lang,omitempty"`
	Target               string   `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SayGoodbyRequest) Descriptor

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

func (*SayGoodbyRequest) GetLang

func (m *SayGoodbyRequest) GetLang() string

func (*SayGoodbyRequest) GetTarget

func (m *SayGoodbyRequest) GetTarget() string

func (*SayGoodbyRequest) ProtoMessage

func (*SayGoodbyRequest) ProtoMessage()

func (*SayGoodbyRequest) Reset

func (m *SayGoodbyRequest) Reset()

func (*SayGoodbyRequest) String

func (m *SayGoodbyRequest) String() string

func (*SayGoodbyRequest) XXX_DiscardUnknown

func (m *SayGoodbyRequest) XXX_DiscardUnknown()

func (*SayGoodbyRequest) XXX_Marshal

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

func (*SayGoodbyRequest) XXX_Merge

func (dst *SayGoodbyRequest) XXX_Merge(src proto.Message)

func (*SayGoodbyRequest) XXX_Size

func (m *SayGoodbyRequest) XXX_Size() int

func (*SayGoodbyRequest) XXX_Unmarshal

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

type SayGoodbyResponse

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

func (*SayGoodbyResponse) Descriptor

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

func (*SayGoodbyResponse) GetV

func (m *SayGoodbyResponse) GetV() string

func (*SayGoodbyResponse) ProtoMessage

func (*SayGoodbyResponse) ProtoMessage()

func (*SayGoodbyResponse) Reset

func (m *SayGoodbyResponse) Reset()

func (*SayGoodbyResponse) String

func (m *SayGoodbyResponse) String() string

func (*SayGoodbyResponse) XXX_DiscardUnknown

func (m *SayGoodbyResponse) XXX_DiscardUnknown()

func (*SayGoodbyResponse) XXX_Marshal

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

func (*SayGoodbyResponse) XXX_Merge

func (dst *SayGoodbyResponse) XXX_Merge(src proto.Message)

func (*SayGoodbyResponse) XXX_Size

func (m *SayGoodbyResponse) XXX_Size() int

func (*SayGoodbyResponse) XXX_Unmarshal

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

type SayHelloRequest

type SayHelloRequest struct {
	Lang                 string   `protobuf:"bytes,1,opt,name=lang,proto3" json:"lang,omitempty"`
	Target               string   `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SayHelloRequest) Descriptor

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

func (*SayHelloRequest) GetLang

func (m *SayHelloRequest) GetLang() string

func (*SayHelloRequest) GetTarget

func (m *SayHelloRequest) GetTarget() string

func (*SayHelloRequest) ProtoMessage

func (*SayHelloRequest) ProtoMessage()

func (*SayHelloRequest) Reset

func (m *SayHelloRequest) Reset()

func (*SayHelloRequest) String

func (m *SayHelloRequest) String() string

func (*SayHelloRequest) XXX_DiscardUnknown

func (m *SayHelloRequest) XXX_DiscardUnknown()

func (*SayHelloRequest) XXX_Marshal

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

func (*SayHelloRequest) XXX_Merge

func (dst *SayHelloRequest) XXX_Merge(src proto.Message)

func (*SayHelloRequest) XXX_Size

func (m *SayHelloRequest) XXX_Size() int

func (*SayHelloRequest) XXX_Unmarshal

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

type SayHelloResponse

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

func (*SayHelloResponse) Descriptor

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

func (*SayHelloResponse) GetV

func (m *SayHelloResponse) GetV() string

func (*SayHelloResponse) ProtoMessage

func (*SayHelloResponse) ProtoMessage()

func (*SayHelloResponse) Reset

func (m *SayHelloResponse) Reset()

func (*SayHelloResponse) String

func (m *SayHelloResponse) String() string

func (*SayHelloResponse) XXX_DiscardUnknown

func (m *SayHelloResponse) XXX_DiscardUnknown()

func (*SayHelloResponse) XXX_Marshal

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

func (*SayHelloResponse) XXX_Merge

func (dst *SayHelloResponse) XXX_Merge(src proto.Message)

func (*SayHelloResponse) XXX_Size

func (m *SayHelloResponse) XXX_Size() int

func (*SayHelloResponse) XXX_Unmarshal

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

type SayServiceClient

type SayServiceClient interface {
	SayHello(ctx context.Context, in *SayHelloRequest, opts ...grpc.CallOption) (*SayHelloResponse, error)
	SayGoodby(ctx context.Context, in *SayGoodbyRequest, opts ...grpc.CallOption) (*SayGoodbyResponse, error)
}

SayServiceClient is the client API for SayService service.

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

func NewSayServiceClient

func NewSayServiceClient(cc *grpc.ClientConn) SayServiceClient

type SayServiceServer

type SayServiceServer interface {
	SayHello(context.Context, *SayHelloRequest) (*SayHelloResponse, error)
	SayGoodby(context.Context, *SayGoodbyRequest) (*SayGoodbyResponse, error)
}

SayServiceServer is the server API for SayService service.

Jump to

Keyboard shortcuts

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