protobuf

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHelloServiceServer added in v0.6.0

func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)

func RegisterHolaServiceServer added in v0.6.0

func RegisterHolaServiceServer(s *grpc.Server, srv HolaServiceServer)

Types

type HelloReply

type HelloReply 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:"-"`
}

The response message containing the greetings

func (*HelloReply) Descriptor

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

func (*HelloReply) GetMessage

func (m *HelloReply) GetMessage() string

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) Reset

func (m *HelloReply) Reset()

func (*HelloReply) String

func (m *HelloReply) String() string

func (*HelloReply) XXX_DiscardUnknown

func (m *HelloReply) XXX_DiscardUnknown()

func (*HelloReply) XXX_Marshal

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

func (*HelloReply) XXX_Merge

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

func (*HelloReply) XXX_Size

func (m *HelloReply) XXX_Size() int

func (*HelloReply) XXX_Unmarshal

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

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:"-"`
}

The request message containing the user's name.

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 (dst *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 HelloServiceClient added in v0.6.0

type HelloServiceClient interface {
	// Sends a hello greeting
	SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
}

HelloServiceClient is the client API for HelloService service.

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

func NewHelloServiceClient added in v0.6.0

func NewHelloServiceClient(cc *grpc.ClientConn) HelloServiceClient

type HelloServiceServer added in v0.6.0

type HelloServiceServer interface {
	// Sends a hello greeting
	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
}

HelloServiceServer is the server API for HelloService service.

type HolaReply added in v0.6.0

type HolaReply 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:"-"`
}

The response message containing the greetings

func (*HolaReply) Descriptor added in v0.6.0

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

func (*HolaReply) GetMessage added in v0.6.0

func (m *HolaReply) GetMessage() string

func (*HolaReply) ProtoMessage added in v0.6.0

func (*HolaReply) ProtoMessage()

func (*HolaReply) Reset added in v0.6.0

func (m *HolaReply) Reset()

func (*HolaReply) String added in v0.6.0

func (m *HolaReply) String() string

func (*HolaReply) XXX_DiscardUnknown added in v0.6.0

func (m *HolaReply) XXX_DiscardUnknown()

func (*HolaReply) XXX_Marshal added in v0.6.0

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

func (*HolaReply) XXX_Merge added in v0.6.0

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

func (*HolaReply) XXX_Size added in v0.6.0

func (m *HolaReply) XXX_Size() int

func (*HolaReply) XXX_Unmarshal added in v0.6.0

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

type HolaRequest added in v0.6.0

type HolaRequest 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:"-"`
}

The request message containing the user's name.

func (*HolaRequest) Descriptor added in v0.6.0

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

func (*HolaRequest) GetName added in v0.6.0

func (m *HolaRequest) GetName() string

func (*HolaRequest) ProtoMessage added in v0.6.0

func (*HolaRequest) ProtoMessage()

func (*HolaRequest) Reset added in v0.6.0

func (m *HolaRequest) Reset()

func (*HolaRequest) String added in v0.6.0

func (m *HolaRequest) String() string

func (*HolaRequest) XXX_DiscardUnknown added in v0.6.0

func (m *HolaRequest) XXX_DiscardUnknown()

func (*HolaRequest) XXX_Marshal added in v0.6.0

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

func (*HolaRequest) XXX_Merge added in v0.6.0

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

func (*HolaRequest) XXX_Size added in v0.6.0

func (m *HolaRequest) XXX_Size() int

func (*HolaRequest) XXX_Unmarshal added in v0.6.0

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

type HolaServiceClient added in v0.6.0

type HolaServiceClient interface {
	// Sends a hola greeting
	SayHola(ctx context.Context, in *HolaRequest, opts ...grpc.CallOption) (*HolaReply, error)
}

HolaServiceClient is the client API for HolaService service.

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

func NewHolaServiceClient added in v0.6.0

func NewHolaServiceClient(cc *grpc.ClientConn) HolaServiceClient

type HolaServiceServer added in v0.6.0

type HolaServiceServer interface {
	// Sends a hola greeting
	SayHola(context.Context, *HolaRequest) (*HolaReply, error)
}

HolaServiceServer is the server API for HolaService service.

Jump to

Keyboard shortcuts

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