Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_event_request_proto protoreflect.FileDescriptor
Functions ¶
func RegisterOnebotEventRequestGRPCServiceServer ¶
func RegisterOnebotEventRequestGRPCServiceServer(s *grpc.Server, srv OnebotEventRequestGRPCServiceServer)
Types ¶
type OnebotEventRequestGRPCServiceClient ¶
type OnebotEventRequestGRPCServiceClient interface { // ListenRequestFriend(handler func(data model.EventRequestFriend) error) HandleRequestFriend(ctx context.Context, in *model.EventRequestFriendGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error) // ListenRequestGroup(handler func(data model.EventRequestGroup) error) HandleRequestGroup(ctx context.Context, in *model.EventRequestGroupGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error) }
OnebotEventRequestGRPCServiceClient is the client API for OnebotEventRequestGRPCService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOnebotEventRequestGRPCServiceClient ¶
func NewOnebotEventRequestGRPCServiceClient(cc grpc.ClientConnInterface) OnebotEventRequestGRPCServiceClient
type OnebotEventRequestGRPCServiceServer ¶
type OnebotEventRequestGRPCServiceServer interface { // ListenRequestFriend(handler func(data model.EventRequestFriend) error) HandleRequestFriend(context.Context, *model.EventRequestFriendGRPC) (*emptypb.Empty, error) // ListenRequestGroup(handler func(data model.EventRequestGroup) error) HandleRequestGroup(context.Context, *model.EventRequestGroupGRPC) (*emptypb.Empty, error) }
OnebotEventRequestGRPCServiceServer is the server API for OnebotEventRequestGRPCService service.
type OnebotRequestEventCli ¶
type OnebotRequestEventCli interface { base.OnebotBaseEventCli ListenRequestFriend(handler func(data model.EventRequestFriend) error) ListenRequestGroup(handler func(data model.EventRequestGroup) error) }
func NewOnebotRequestEventCli ¶
func NewOnebotRequestEventCli() (OnebotRequestEventCli, error)
type UnimplementedOnebotEventRequestGRPCServiceServer ¶
type UnimplementedOnebotEventRequestGRPCServiceServer struct { }
UnimplementedOnebotEventRequestGRPCServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedOnebotEventRequestGRPCServiceServer) HandleRequestFriend ¶
func (*UnimplementedOnebotEventRequestGRPCServiceServer) HandleRequestFriend(context.Context, *model.EventRequestFriendGRPC) (*emptypb.Empty, error)
func (*UnimplementedOnebotEventRequestGRPCServiceServer) HandleRequestGroup ¶
func (*UnimplementedOnebotEventRequestGRPCServiceServer) HandleRequestGroup(context.Context, *model.EventRequestGroupGRPC) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.