Documentation ¶
Overview ¶
Package examplepb is a generated protocol buffer package.
It is generated from these files:
internal/examples/protobuf/examplepb/example.proto
It has these top-level messages:
GetValueRequest GetValueResponse SetValueRequest SetValueResponse FireRequest
Index ¶
- Variables
- func BuildKeyValueYarpcProcedures(server KeyValueYarpcServer) []transport.Procedure
- func BuildSinkYarpcProcedures(server SinkYarpcServer) []transport.Procedure
- func RegisterKeyValueServer(s *grpc.Server, srv KeyValueServer)
- func RegisterSinkServer(s *grpc.Server, srv SinkServer)
- type FireRequest
- func (*FireRequest) Descriptor() ([]byte, []int)
- func (this *FireRequest) Equal(that interface{}) bool
- func (m *FireRequest) GetValue() string
- func (this *FireRequest) GoString() string
- func (m *FireRequest) Marshal() (dAtA []byte, err error)
- func (m *FireRequest) MarshalTo(dAtA []byte) (int, error)
- func (*FireRequest) ProtoMessage()
- func (m *FireRequest) Reset()
- func (m *FireRequest) Size() (n int)
- func (this *FireRequest) String() string
- func (m *FireRequest) Unmarshal(dAtA []byte) error
- type GetValueRequest
- func (*GetValueRequest) Descriptor() ([]byte, []int)
- func (this *GetValueRequest) Equal(that interface{}) bool
- func (m *GetValueRequest) GetKey() string
- func (this *GetValueRequest) GoString() string
- func (m *GetValueRequest) Marshal() (dAtA []byte, err error)
- func (m *GetValueRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetValueRequest) ProtoMessage()
- func (m *GetValueRequest) Reset()
- func (m *GetValueRequest) Size() (n int)
- func (this *GetValueRequest) String() string
- func (m *GetValueRequest) Unmarshal(dAtA []byte) error
- type GetValueResponse
- func (*GetValueResponse) Descriptor() ([]byte, []int)
- func (this *GetValueResponse) Equal(that interface{}) bool
- func (m *GetValueResponse) GetValue() string
- func (this *GetValueResponse) GoString() string
- func (m *GetValueResponse) Marshal() (dAtA []byte, err error)
- func (m *GetValueResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetValueResponse) ProtoMessage()
- func (m *GetValueResponse) Reset()
- func (m *GetValueResponse) Size() (n int)
- func (this *GetValueResponse) String() string
- func (m *GetValueResponse) Unmarshal(dAtA []byte) error
- type KeyValueClient
- type KeyValueServer
- type KeyValueYarpcClient
- type KeyValueYarpcServer
- type SetValueRequest
- func (*SetValueRequest) Descriptor() ([]byte, []int)
- func (this *SetValueRequest) Equal(that interface{}) bool
- func (m *SetValueRequest) GetKey() string
- func (m *SetValueRequest) GetValue() string
- func (this *SetValueRequest) GoString() string
- func (m *SetValueRequest) Marshal() (dAtA []byte, err error)
- func (m *SetValueRequest) MarshalTo(dAtA []byte) (int, error)
- func (*SetValueRequest) ProtoMessage()
- func (m *SetValueRequest) Reset()
- func (m *SetValueRequest) Size() (n int)
- func (this *SetValueRequest) String() string
- func (m *SetValueRequest) Unmarshal(dAtA []byte) error
- type SetValueResponse
- func (*SetValueResponse) Descriptor() ([]byte, []int)
- func (this *SetValueResponse) Equal(that interface{}) bool
- func (this *SetValueResponse) GoString() string
- func (m *SetValueResponse) Marshal() (dAtA []byte, err error)
- func (m *SetValueResponse) MarshalTo(dAtA []byte) (int, error)
- func (*SetValueResponse) ProtoMessage()
- func (m *SetValueResponse) Reset()
- func (m *SetValueResponse) Size() (n int)
- func (this *SetValueResponse) String() string
- func (m *SetValueResponse) Unmarshal(dAtA []byte) error
- type SinkClient
- type SinkServer
- type SinkYarpcClient
- type SinkYarpcServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthExample = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowExample = fmt.Errorf("proto: integer overflow") )
Functions ¶
func BuildKeyValueYarpcProcedures ¶
func BuildKeyValueYarpcProcedures(server KeyValueYarpcServer) []transport.Procedure
BuildKeyValueYarpcProcedures prepares an implementation of the KeyValue service for yarpc registration.
func BuildSinkYarpcProcedures ¶
func BuildSinkYarpcProcedures(server SinkYarpcServer) []transport.Procedure
BuildSinkYarpcProcedures prepares an implementation of the Sink service for yarpc registration.
func RegisterKeyValueServer ¶
func RegisterKeyValueServer(s *grpc.Server, srv KeyValueServer)
func RegisterSinkServer ¶
func RegisterSinkServer(s *grpc.Server, srv SinkServer)
Types ¶
type FireRequest ¶
type FireRequest struct {
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}
func (*FireRequest) Descriptor ¶
func (*FireRequest) Descriptor() ([]byte, []int)
func (*FireRequest) Equal ¶
func (this *FireRequest) Equal(that interface{}) bool
func (*FireRequest) GetValue ¶
func (m *FireRequest) GetValue() string
func (*FireRequest) GoString ¶
func (this *FireRequest) GoString() string
func (*FireRequest) Marshal ¶
func (m *FireRequest) Marshal() (dAtA []byte, err error)
func (*FireRequest) ProtoMessage ¶
func (*FireRequest) ProtoMessage()
func (*FireRequest) Reset ¶
func (m *FireRequest) Reset()
func (*FireRequest) Size ¶
func (m *FireRequest) Size() (n int)
func (*FireRequest) String ¶
func (this *FireRequest) String() string
func (*FireRequest) Unmarshal ¶
func (m *FireRequest) Unmarshal(dAtA []byte) error
type GetValueRequest ¶
type GetValueRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
func (*GetValueRequest) Descriptor ¶
func (*GetValueRequest) Descriptor() ([]byte, []int)
func (*GetValueRequest) Equal ¶
func (this *GetValueRequest) Equal(that interface{}) bool
func (*GetValueRequest) GetKey ¶
func (m *GetValueRequest) GetKey() string
func (*GetValueRequest) GoString ¶
func (this *GetValueRequest) GoString() string
func (*GetValueRequest) Marshal ¶
func (m *GetValueRequest) Marshal() (dAtA []byte, err error)
func (*GetValueRequest) ProtoMessage ¶
func (*GetValueRequest) ProtoMessage()
func (*GetValueRequest) Reset ¶
func (m *GetValueRequest) Reset()
func (*GetValueRequest) Size ¶
func (m *GetValueRequest) Size() (n int)
func (*GetValueRequest) String ¶
func (this *GetValueRequest) String() string
func (*GetValueRequest) Unmarshal ¶
func (m *GetValueRequest) Unmarshal(dAtA []byte) error
type GetValueResponse ¶
type GetValueResponse struct {
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (*GetValueResponse) Descriptor ¶
func (*GetValueResponse) Descriptor() ([]byte, []int)
func (*GetValueResponse) Equal ¶
func (this *GetValueResponse) Equal(that interface{}) bool
func (*GetValueResponse) GetValue ¶
func (m *GetValueResponse) GetValue() string
func (*GetValueResponse) GoString ¶
func (this *GetValueResponse) GoString() string
func (*GetValueResponse) Marshal ¶
func (m *GetValueResponse) Marshal() (dAtA []byte, err error)
func (*GetValueResponse) ProtoMessage ¶
func (*GetValueResponse) ProtoMessage()
func (*GetValueResponse) Reset ¶
func (m *GetValueResponse) Reset()
func (*GetValueResponse) Size ¶
func (m *GetValueResponse) Size() (n int)
func (*GetValueResponse) String ¶
func (this *GetValueResponse) String() string
func (*GetValueResponse) Unmarshal ¶
func (m *GetValueResponse) Unmarshal(dAtA []byte) error
type KeyValueClient ¶
type KeyValueClient interface { GetValue(ctx context.Context, in *GetValueRequest, opts ...grpc.CallOption) (*GetValueResponse, error) SetValue(ctx context.Context, in *SetValueRequest, opts ...grpc.CallOption) (*SetValueResponse, error) }
func NewKeyValueClient ¶
func NewKeyValueClient(cc *grpc.ClientConn) KeyValueClient
type KeyValueServer ¶
type KeyValueServer interface { GetValue(context.Context, *GetValueRequest) (*GetValueResponse, error) SetValue(context.Context, *SetValueRequest) (*SetValueResponse, error) }
type KeyValueYarpcClient ¶
type KeyValueYarpcClient interface { GetValue(context.Context, *GetValueRequest, ...yarpc.CallOption) (*GetValueResponse, error) SetValue(context.Context, *SetValueRequest, ...yarpc.CallOption) (*SetValueResponse, error) }
KeyValueYarpcClient is the yarpc client-side interface for the KeyValue service.
func NewKeyValueYarpcClient ¶
func NewKeyValueYarpcClient(clientConfig transport.ClientConfig) KeyValueYarpcClient
NewKeyValueYarpcClient builds a new yarpc client for the KeyValue service.
type KeyValueYarpcServer ¶
type KeyValueYarpcServer interface { GetValue(context.Context, *GetValueRequest) (*GetValueResponse, error) SetValue(context.Context, *SetValueRequest) (*SetValueResponse, error) }
KeyValueYarpcServer is the yarpc server-side interface for the KeyValue service.
type SetValueRequest ¶
type SetValueRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
func (*SetValueRequest) Descriptor ¶
func (*SetValueRequest) Descriptor() ([]byte, []int)
func (*SetValueRequest) Equal ¶
func (this *SetValueRequest) Equal(that interface{}) bool
func (*SetValueRequest) GetKey ¶
func (m *SetValueRequest) GetKey() string
func (*SetValueRequest) GetValue ¶
func (m *SetValueRequest) GetValue() string
func (*SetValueRequest) GoString ¶
func (this *SetValueRequest) GoString() string
func (*SetValueRequest) Marshal ¶
func (m *SetValueRequest) Marshal() (dAtA []byte, err error)
func (*SetValueRequest) ProtoMessage ¶
func (*SetValueRequest) ProtoMessage()
func (*SetValueRequest) Reset ¶
func (m *SetValueRequest) Reset()
func (*SetValueRequest) Size ¶
func (m *SetValueRequest) Size() (n int)
func (*SetValueRequest) String ¶
func (this *SetValueRequest) String() string
func (*SetValueRequest) Unmarshal ¶
func (m *SetValueRequest) Unmarshal(dAtA []byte) error
type SetValueResponse ¶
type SetValueResponse struct { }
func (*SetValueResponse) Descriptor ¶
func (*SetValueResponse) Descriptor() ([]byte, []int)
func (*SetValueResponse) Equal ¶
func (this *SetValueResponse) Equal(that interface{}) bool
func (*SetValueResponse) GoString ¶
func (this *SetValueResponse) GoString() string
func (*SetValueResponse) Marshal ¶
func (m *SetValueResponse) Marshal() (dAtA []byte, err error)
func (*SetValueResponse) ProtoMessage ¶
func (*SetValueResponse) ProtoMessage()
func (*SetValueResponse) Reset ¶
func (m *SetValueResponse) Reset()
func (*SetValueResponse) Size ¶
func (m *SetValueResponse) Size() (n int)
func (*SetValueResponse) String ¶
func (this *SetValueResponse) String() string
func (*SetValueResponse) Unmarshal ¶
func (m *SetValueResponse) Unmarshal(dAtA []byte) error
type SinkClient ¶
type SinkClient interface {
Fire(ctx context.Context, in *FireRequest, opts ...grpc.CallOption) (*uber_yarpc.Oneway, error)
}
func NewSinkClient ¶
func NewSinkClient(cc *grpc.ClientConn) SinkClient
type SinkServer ¶
type SinkServer interface {
Fire(context.Context, *FireRequest) (*uber_yarpc.Oneway, error)
}
type SinkYarpcClient ¶
type SinkYarpcClient interface {
Fire(context.Context, *FireRequest, ...yarpc.CallOption) (yarpc.Ack, error)
}
SinkYarpcClient is the yarpc client-side interface for the Sink service.
func NewSinkYarpcClient ¶
func NewSinkYarpcClient(clientConfig transport.ClientConfig) SinkYarpcClient
NewSinkYarpcClient builds a new yarpc client for the Sink service.
type SinkYarpcServer ¶
type SinkYarpcServer interface {
Fire(context.Context, *FireRequest) error
}
SinkYarpcServer is the yarpc server-side interface for the Sink service.