Documentation ¶
Index ¶
- Variables
- func RegisterEventsServer(s grpc.ServiceRegistrar, srv EventsServer)
- type EventsClient
- type EventsServer
- type Events_SubClient
- type Events_SubServer
- type HealthReq
- type HealthRes
- type PubReq
- func (*PubReq) Descriptor() ([]byte, []int)deprecated
- func (x *PubReq) GetApp() string
- func (x *PubReq) GetData() string
- func (x *PubReq) GetType() string
- func (x *PubReq) GetWorkspace() string
- func (*PubReq) ProtoMessage()
- func (x *PubReq) ProtoReflect() protoreflect.Message
- func (x *PubReq) Reset()
- func (x *PubReq) String() string
- type PubRes
- func (*PubRes) Descriptor() ([]byte, []int)deprecated
- func (x *PubRes) GetBucket() string
- func (x *PubRes) GetPubkey() string
- func (x *PubRes) GetTimestamps() int64
- func (*PubRes) ProtoMessage()
- func (x *PubRes) ProtoReflect() protoreflect.Message
- func (x *PubRes) Reset()
- func (x *PubRes) String() string
- type SubReq
- func (*SubReq) Descriptor() ([]byte, []int)deprecated
- func (x *SubReq) GetApp() string
- func (x *SubReq) GetType() string
- func (x *SubReq) GetWorkspace() string
- func (*SubReq) ProtoMessage()
- func (x *SubReq) ProtoReflect() protoreflect.Message
- func (x *SubReq) Reset()
- func (x *SubReq) String() string
- type SubRes
- func (*SubRes) Descriptor() ([]byte, []int)deprecated
- func (x *SubRes) GetApp() string
- func (x *SubRes) GetBucket() string
- func (x *SubRes) GetData() string
- func (x *SubRes) GetId() string
- func (x *SubRes) GetTimestamps() int64
- func (x *SubRes) GetType() string
- func (x *SubRes) GetWorkspace() string
- func (*SubRes) ProtoMessage()
- func (x *SubRes) ProtoReflect() protoreflect.Message
- func (x *SubRes) Reset()
- func (x *SubRes) String() string
- type UnimplementedEventsServer
- type UnsafeEventsServer
Constants ¶
This section is empty.
Variables ¶
var Events_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.Events", HandlerType: (*EventsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Health", Handler: _Events_Health_Handler, }, { MethodName: "Pub", Handler: _Events_Pub_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Sub", Handler: _Events_Sub_Handler, ServerStreams: true, }, }, Metadata: "events.proto", }
Events_ServiceDesc is the grpc.ServiceDesc for Events service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_events_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEventsServer ¶
func RegisterEventsServer(s grpc.ServiceRegistrar, srv EventsServer)
Types ¶
type EventsClient ¶
type EventsClient interface { Health(ctx context.Context, in *HealthReq, opts ...grpc.CallOption) (*HealthRes, error) Pub(ctx context.Context, in *PubReq, opts ...grpc.CallOption) (*PubRes, error) Sub(ctx context.Context, in *SubReq, opts ...grpc.CallOption) (Events_SubClient, error) }
EventsClient is the client API for Events service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEventsClient ¶
func NewEventsClient(cc grpc.ClientConnInterface) EventsClient
type EventsServer ¶
type EventsServer interface { Health(context.Context, *HealthReq) (*HealthRes, error) Pub(context.Context, *PubReq) (*PubRes, error) Sub(*SubReq, Events_SubServer) error // contains filtered or unexported methods }
EventsServer is the server API for Events service. All implementations must embed UnimplementedEventsServer for forward compatibility
type Events_SubClient ¶
type Events_SubClient interface { Recv() (*SubRes, error) grpc.ClientStream }
type Events_SubServer ¶
type Events_SubServer interface { Send(*SubRes) error grpc.ServerStream }
type HealthReq ¶
type HealthReq struct {
// contains filtered or unexported fields
}
func (*HealthReq) Descriptor
deprecated
func (*HealthReq) ProtoMessage ¶
func (*HealthReq) ProtoMessage()
func (*HealthReq) ProtoReflect ¶
func (x *HealthReq) ProtoReflect() protoreflect.Message
type HealthRes ¶
type HealthRes struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*HealthRes) Descriptor
deprecated
func (*HealthRes) GetVersion ¶
func (*HealthRes) ProtoMessage ¶
func (*HealthRes) ProtoMessage()
func (*HealthRes) ProtoReflect ¶
func (x *HealthRes) ProtoReflect() protoreflect.Message
type PubReq ¶
type PubReq struct { Workspace string `protobuf:"bytes,1,opt,name=workspace,proto3" json:"workspace,omitempty"` App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*PubReq) Descriptor
deprecated
func (*PubReq) GetWorkspace ¶
func (*PubReq) ProtoMessage ¶
func (*PubReq) ProtoMessage()
func (*PubReq) ProtoReflect ¶
func (x *PubReq) ProtoReflect() protoreflect.Message
type PubRes ¶
type PubRes struct { Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` Timestamps int64 `protobuf:"varint,3,opt,name=timestamps,proto3" json:"timestamps,omitempty"` // contains filtered or unexported fields }
func (*PubRes) Descriptor
deprecated
func (*PubRes) GetTimestamps ¶
func (*PubRes) ProtoMessage ¶
func (*PubRes) ProtoMessage()
func (*PubRes) ProtoReflect ¶
func (x *PubRes) ProtoReflect() protoreflect.Message
type SubReq ¶
type SubReq struct { Workspace string `protobuf:"bytes,1,opt,name=workspace,proto3" json:"workspace,omitempty"` App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*SubReq) Descriptor
deprecated
func (*SubReq) GetWorkspace ¶
func (*SubReq) ProtoMessage ¶
func (*SubReq) ProtoMessage()
func (*SubReq) ProtoReflect ¶
func (x *SubReq) ProtoReflect() protoreflect.Message
type SubRes ¶
type SubRes struct { Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Workspace string `protobuf:"bytes,2,opt,name=workspace,proto3" json:"workspace,omitempty"` App string `protobuf:"bytes,3,opt,name=app,proto3" json:"app,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` Timestamps int64 `protobuf:"varint,6,opt,name=timestamps,proto3" json:"timestamps,omitempty"` Data string `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SubRes) Descriptor
deprecated
func (*SubRes) GetTimestamps ¶
func (*SubRes) GetWorkspace ¶
func (*SubRes) ProtoMessage ¶
func (*SubRes) ProtoMessage()
func (*SubRes) ProtoReflect ¶
func (x *SubRes) ProtoReflect() protoreflect.Message
type UnimplementedEventsServer ¶
type UnimplementedEventsServer struct { }
UnimplementedEventsServer must be embedded to have forward compatible implementations.
func (UnimplementedEventsServer) Sub ¶
func (UnimplementedEventsServer) Sub(*SubReq, Events_SubServer) error
type UnsafeEventsServer ¶
type UnsafeEventsServer interface {
// contains filtered or unexported methods
}
UnsafeEventsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventsServer will result in compilation errors.