message

package
v0.0.0-...-5349944 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 11 Imported by: 0

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.

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) HandlerPrivateMessage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL