Documentation ¶
Index ¶
- Variables
- func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
- type Service
- type ServiceClient
- type ServiceServer
- type Service_SubmitMessagesClient
- type Service_SubmitMessagesServer
- type SubmitMessagesRequest
- func (*SubmitMessagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitMessagesRequest) GetMsgs() []*pb.CloudEvent
- func (*SubmitMessagesRequest) ProtoMessage()
- func (x *SubmitMessagesRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitMessagesRequest) Reset()
- func (x *SubmitMessagesRequest) String() string
- type SubmitMessagesResponse
- func (*SubmitMessagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitMessagesResponse) GetAckCount() uint32
- func (*SubmitMessagesResponse) ProtoMessage()
- func (x *SubmitMessagesResponse) ProtoReflect() protoreflect.Message
- func (x *SubmitMessagesResponse) Reset()
- func (x *SubmitMessagesResponse) String() string
- type UnimplementedServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInternal = errors.New("internal failure")
View Source
var File_api_grpc_writer_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterServiceServer ¶ added in v0.0.2
func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
Types ¶
type Service ¶
type Service interface {
OpenWriter(ctx context.Context, userId string) (w model.Writer[*pb.CloudEvent], err error)
}
func NewService ¶
func NewService(client ServiceClient) Service
func NewServiceMock ¶
func NewServiceMock() Service
type ServiceClient ¶ added in v0.0.2
type ServiceClient interface {
SubmitMessages(ctx context.Context, opts ...grpc.CallOption) (Service_SubmitMessagesClient, error)
}
ServiceClient is the client API for Service service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceClient ¶ added in v0.0.2
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶ added in v0.0.2
type ServiceServer interface {
SubmitMessages(Service_SubmitMessagesServer) error
}
ServiceServer is the server API for Service service.
type Service_SubmitMessagesClient ¶ added in v0.0.2
type Service_SubmitMessagesClient interface { Send(*SubmitMessagesRequest) error Recv() (*SubmitMessagesResponse, error) grpc.ClientStream }
type Service_SubmitMessagesServer ¶ added in v0.0.2
type Service_SubmitMessagesServer interface { Send(*SubmitMessagesResponse) error Recv() (*SubmitMessagesRequest, error) grpc.ServerStream }
type SubmitMessagesRequest ¶ added in v0.0.2
type SubmitMessagesRequest struct { Msgs []*pb.CloudEvent `protobuf:"bytes,1,rep,name=msgs,proto3" json:"msgs,omitempty"` // contains filtered or unexported fields }
func (*SubmitMessagesRequest) Descriptor
deprecated
added in
v0.0.2
func (*SubmitMessagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitMessagesRequest.ProtoReflect.Descriptor instead.
func (*SubmitMessagesRequest) GetMsgs ¶ added in v0.0.2
func (x *SubmitMessagesRequest) GetMsgs() []*pb.CloudEvent
func (*SubmitMessagesRequest) ProtoMessage ¶ added in v0.0.2
func (*SubmitMessagesRequest) ProtoMessage()
func (*SubmitMessagesRequest) ProtoReflect ¶ added in v0.0.2
func (x *SubmitMessagesRequest) ProtoReflect() protoreflect.Message
func (*SubmitMessagesRequest) Reset ¶ added in v0.0.2
func (x *SubmitMessagesRequest) Reset()
func (*SubmitMessagesRequest) String ¶ added in v0.0.2
func (x *SubmitMessagesRequest) String() string
type SubmitMessagesResponse ¶ added in v0.0.2
type SubmitMessagesResponse struct { AckCount uint32 `protobuf:"varint,1,opt,name=ackCount,proto3" json:"ackCount,omitempty"` // contains filtered or unexported fields }
func (*SubmitMessagesResponse) Descriptor
deprecated
added in
v0.0.2
func (*SubmitMessagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubmitMessagesResponse.ProtoReflect.Descriptor instead.
func (*SubmitMessagesResponse) GetAckCount ¶ added in v0.0.2
func (x *SubmitMessagesResponse) GetAckCount() uint32
func (*SubmitMessagesResponse) ProtoMessage ¶ added in v0.0.2
func (*SubmitMessagesResponse) ProtoMessage()
func (*SubmitMessagesResponse) ProtoReflect ¶ added in v0.0.2
func (x *SubmitMessagesResponse) ProtoReflect() protoreflect.Message
func (*SubmitMessagesResponse) Reset ¶ added in v0.0.2
func (x *SubmitMessagesResponse) Reset()
func (*SubmitMessagesResponse) String ¶ added in v0.0.2
func (x *SubmitMessagesResponse) String() string
type UnimplementedServiceServer ¶ added in v0.0.2
type UnimplementedServiceServer struct { }
UnimplementedServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceServer) SubmitMessages ¶ added in v0.0.2
func (*UnimplementedServiceServer) SubmitMessages(Service_SubmitMessagesServer) error
Click to show internal directories.
Click to hide internal directories.