Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_event_message_proto protoreflect.FileDescriptor
Functions ¶
func RegisterOnebotEventMessageGRPCServiceServer ¶
func RegisterOnebotEventMessageGRPCServiceServer(s *grpc.Server, srv OnebotEventMessageGRPCServiceServer)
Types ¶
type OnebotEventMessageGRPCServiceClient ¶
type OnebotEventMessageGRPCServiceClient interface { // ListenMessagePrivate(handler func(data model.EventMessagePrivate) error) HandlerPrivateMessage(ctx context.Context, in *model.EventMessagePrivateGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error) // ListenMessageGroup(handler func(data model.EventMessageGroup) error) HandlerGroupMessage(ctx context.Context, in *model.EventMessageGroupGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error) }
OnebotEventMessageGRPCServiceClient is the client API for OnebotEventMessageGRPCService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOnebotEventMessageGRPCServiceClient ¶
func NewOnebotEventMessageGRPCServiceClient(cc grpc.ClientConnInterface) OnebotEventMessageGRPCServiceClient
type OnebotEventMessageGRPCServiceServer ¶
type OnebotEventMessageGRPCServiceServer interface { // ListenMessagePrivate(handler func(data model.EventMessagePrivate) error) HandlerPrivateMessage(context.Context, *model.EventMessagePrivateGRPC) (*emptypb.Empty, error) // ListenMessageGroup(handler func(data model.EventMessageGroup) error) HandlerGroupMessage(context.Context, *model.EventMessageGroupGRPC) (*emptypb.Empty, error) }
OnebotEventMessageGRPCServiceServer is the server API for OnebotEventMessageGRPCService service.
type OnebotMessageEventCli ¶
type OnebotMessageEventCli interface { base.OnebotBaseEventCli ListenMessagePrivate(handler func(data model.EventMessagePrivate) error) ListenMessageGroup(handler func(data model.EventMessageGroup) error) }
func NewOnebotMessageEventCli ¶
func NewOnebotMessageEventCli() (OnebotMessageEventCli, error)
type UnimplementedOnebotEventMessageGRPCServiceServer ¶
type UnimplementedOnebotEventMessageGRPCServiceServer struct { }
UnimplementedOnebotEventMessageGRPCServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedOnebotEventMessageGRPCServiceServer) HandlerGroupMessage ¶
func (*UnimplementedOnebotEventMessageGRPCServiceServer) HandlerGroupMessage(context.Context, *model.EventMessageGroupGRPC) (*emptypb.Empty, error)
func (*UnimplementedOnebotEventMessageGRPCServiceServer) HandlerPrivateMessage ¶
func (*UnimplementedOnebotEventMessageGRPCServiceServer) HandlerPrivateMessage(context.Context, *model.EventMessagePrivateGRPC) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.