notice

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_notice_proto protoreflect.FileDescriptor

Functions

func RegisterOnebotEventNoticeGRPCServiceServer

func RegisterOnebotEventNoticeGRPCServiceServer(s *grpc.Server, srv OnebotEventNoticeGRPCServiceServer)

Types

type OnebotEventNoticeGRPCServiceClient

type OnebotEventNoticeGRPCServiceClient interface {
	// ListenNoticeGroupUpload(handler func(data model.EventNoticeGroupUpload) error)
	HandleNoticeGroupUpload(ctx context.Context, in *model.EventNoticeGroupUploadGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListenNoticeGroupAdmin(handler func(data model.EventNoticeGroupAdmin) error)
	HandleNoticeGroupAdmin(ctx context.Context, in *model.EventNoticeGroupAdminGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListenNoticeGroupDecrease(handler func(data model.EventNoticeGroupDecrease) error)
	HandleNoticeGroupDecrease(ctx context.Context, in *model.EventNoticeGroupDecreaseGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListenNoticeGroupIncrease(handler func(data model.EventNoticeGroupIncrease) error)
	HandleNoticeGroupIncrease(ctx context.Context, in *model.EventNoticeGroupIncreaseGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListenNoticeGroupBan(handler func(data model.EventNoticeGroupBan) error)
	HandleNoticeGroupBan(ctx context.Context, in *model.EventNoticeGroupBanGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListenNoticeFriendAdd(handler func(data model.EventNoticeFriendAdd) error)
	HandleNoticeFriendAdd(ctx context.Context, in *model.EventNoticeFriendAddGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListenNoticeGroupRecall(handler func(data model.EventNoticeGroupRecall) error)
	HandleNoticeGroupRecall(ctx context.Context, in *model.EventNoticeGroupRecallGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListenNoticeFriendRecall(handler func(data model.EventNoticeFriendRecall) error)
	HandleNoticeFriendRecall(ctx context.Context, in *model.EventNoticeFriendRecallGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListenNoticeGroupNotifyPoke(handler func(data model.EventNoticeGroupNotifyPoke) error)
	HandleNoticeGroupNotifyPoke(ctx context.Context, in *model.EventNoticeGroupNotifyPokeGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListenNoticeGroupNotifyHonor(handler func(data model.EventNoticeGroupNotifyHonor) error)
	HandleNoticeGroupNotifyHonor(ctx context.Context, in *model.EventNoticeGroupNotifyHonorGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListenNoticeGroupNotifyLuckyKing(handler func(data model.EventNoticeGroupNotifyLuckyKing) error)
	HandleNoticeGroupNotifyLuckyKing(ctx context.Context, in *model.EventNoticeGroupNotifyLuckyKingGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

OnebotEventNoticeGRPCServiceClient is the client API for OnebotEventNoticeGRPCService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type OnebotEventNoticeGRPCServiceServer

type OnebotEventNoticeGRPCServiceServer interface {
	// ListenNoticeGroupUpload(handler func(data model.EventNoticeGroupUpload) error)
	HandleNoticeGroupUpload(context.Context, *model.EventNoticeGroupUploadGRPC) (*emptypb.Empty, error)
	// ListenNoticeGroupAdmin(handler func(data model.EventNoticeGroupAdmin) error)
	HandleNoticeGroupAdmin(context.Context, *model.EventNoticeGroupAdminGRPC) (*emptypb.Empty, error)
	// ListenNoticeGroupDecrease(handler func(data model.EventNoticeGroupDecrease) error)
	HandleNoticeGroupDecrease(context.Context, *model.EventNoticeGroupDecreaseGRPC) (*emptypb.Empty, error)
	// ListenNoticeGroupIncrease(handler func(data model.EventNoticeGroupIncrease) error)
	HandleNoticeGroupIncrease(context.Context, *model.EventNoticeGroupIncreaseGRPC) (*emptypb.Empty, error)
	// ListenNoticeGroupBan(handler func(data model.EventNoticeGroupBan) error)
	HandleNoticeGroupBan(context.Context, *model.EventNoticeGroupBanGRPC) (*emptypb.Empty, error)
	// ListenNoticeFriendAdd(handler func(data model.EventNoticeFriendAdd) error)
	HandleNoticeFriendAdd(context.Context, *model.EventNoticeFriendAddGRPC) (*emptypb.Empty, error)
	// ListenNoticeGroupRecall(handler func(data model.EventNoticeGroupRecall) error)
	HandleNoticeGroupRecall(context.Context, *model.EventNoticeGroupRecallGRPC) (*emptypb.Empty, error)
	// ListenNoticeFriendRecall(handler func(data model.EventNoticeFriendRecall) error)
	HandleNoticeFriendRecall(context.Context, *model.EventNoticeFriendRecallGRPC) (*emptypb.Empty, error)
	// ListenNoticeGroupNotifyPoke(handler func(data model.EventNoticeGroupNotifyPoke) error)
	HandleNoticeGroupNotifyPoke(context.Context, *model.EventNoticeGroupNotifyPokeGRPC) (*emptypb.Empty, error)
	// ListenNoticeGroupNotifyHonor(handler func(data model.EventNoticeGroupNotifyHonor) error)
	HandleNoticeGroupNotifyHonor(context.Context, *model.EventNoticeGroupNotifyHonorGRPC) (*emptypb.Empty, error)
	// ListenNoticeGroupNotifyLuckyKing(handler func(data model.EventNoticeGroupNotifyLuckyKing) error)
	HandleNoticeGroupNotifyLuckyKing(context.Context, *model.EventNoticeGroupNotifyLuckyKingGRPC) (*emptypb.Empty, error)
}

OnebotEventNoticeGRPCServiceServer is the server API for OnebotEventNoticeGRPCService service.

type OnebotNoticeEventCli

type OnebotNoticeEventCli interface {
	base.OnebotBaseEventCli
	ListenNoticeGroupUpload(handler func(data model.EventNoticeGroupUpload) error)
	ListenNoticeGroupAdmin(handler func(data model.EventNoticeGroupAdmin) error)
	ListenNoticeGroupDecrease(handler func(data model.EventNoticeGroupDecrease) error)
	ListenNoticeGroupIncrease(handler func(data model.EventNoticeGroupIncrease) error)
	ListenNoticeGroupBan(handler func(data model.EventNoticeGroupBan) error)
	ListenNoticeFriendAdd(handler func(data model.EventNoticeFriendAdd) error)
	ListenNoticeGroupRecall(handler func(data model.EventNoticeGroupRecall) error)
	ListenNoticeFriendRecall(handler func(data model.EventNoticeFriendRecall) error)
	ListenNoticeGroupNotifyPoke(handler func(data model.EventNoticeGroupNotifyPoke) error)
	ListenNoticeGroupNotifyHonor(handler func(data model.EventNoticeGroupNotifyHonor) error)
	ListenNoticeGroupNotifyLuckyKing(handler func(data model.EventNoticeGroupNotifyLuckyKing) error)
}

func NewOnebotNoticeEventCli

func NewOnebotNoticeEventCli() (OnebotNoticeEventCli, error)

type UnimplementedOnebotEventNoticeGRPCServiceServer

type UnimplementedOnebotEventNoticeGRPCServiceServer struct {
}

UnimplementedOnebotEventNoticeGRPCServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeFriendAdd

func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeFriendRecall

func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupAdmin

func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupBan

func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupDecrease

func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupIncrease

func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupNotifyHonor

func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupNotifyLuckyKing

func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupNotifyPoke

func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupRecall

func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupUpload

Jump to

Keyboard shortcuts

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