Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
value.proto
It has these top-level messages:
Update Summary
Index ¶
- func RegisterValueServiceServer(s *grpc.Server, srv ValueServiceServer)
- type Summary
- type Update
- type ValueServiceClient
- type ValueServiceServer
- type ValueService_NoisyUpdateClient
- type ValueService_NoisyUpdateServer
- type ValueService_QuietUpdateClient
- type ValueService_QuietUpdateServer
- type ValueService_SubscribeClient
- type ValueService_SubscribeServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterValueServiceServer ¶
func RegisterValueServiceServer(s *grpc.Server, srv ValueServiceServer)
Types ¶
type Summary ¶
type Summary struct { Updates int32 `protobuf:"varint,1,opt,name=updates" json:"updates,omitempty"` Value int32 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"` }
func (*Summary) Descriptor ¶
func (*Summary) GetUpdates ¶
func (*Summary) ProtoMessage ¶
func (*Summary) ProtoMessage()
type Update ¶
type Update struct {
Delta int32 `protobuf:"varint,1,opt,name=delta" json:"delta,omitempty"`
}
func (*Update) Descriptor ¶
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
type ValueServiceClient ¶
type ValueServiceClient interface { Subscribe(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (ValueService_SubscribeClient, error) QuietUpdate(ctx context.Context, opts ...grpc.CallOption) (ValueService_QuietUpdateClient, error) NoisyUpdate(ctx context.Context, opts ...grpc.CallOption) (ValueService_NoisyUpdateClient, error) }
func NewValueServiceClient ¶
func NewValueServiceClient(cc *grpc.ClientConn) ValueServiceClient
type ValueServiceServer ¶
type ValueServiceServer interface { Subscribe(*google_protobuf.Empty, ValueService_SubscribeServer) error QuietUpdate(ValueService_QuietUpdateServer) error NoisyUpdate(ValueService_NoisyUpdateServer) error }
type ValueService_SubscribeClient ¶
type ValueService_SubscribeClient interface { Recv() (*Summary, error) grpc.ClientStream }
type ValueService_SubscribeServer ¶
type ValueService_SubscribeServer interface { Send(*Summary) error grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.