Documentation ¶
Index ¶
- Variables
- func RegisterOnebotEventNoticeGRPCServiceServer(s *grpc.Server, srv OnebotEventNoticeGRPCServiceServer)
- type OnebotEventNoticeGRPCServiceClient
- type OnebotEventNoticeGRPCServiceServer
- type OnebotNoticeEventCli
- type UnimplementedOnebotEventNoticeGRPCServiceServer
- func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeFriendAdd(context.Context, *model.EventNoticeFriendAddGRPC) (*emptypb.Empty, error)
- func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeFriendRecall(context.Context, *model.EventNoticeFriendRecallGRPC) (*emptypb.Empty, error)
- func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupAdmin(context.Context, *model.EventNoticeGroupAdminGRPC) (*emptypb.Empty, error)
- func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupBan(context.Context, *model.EventNoticeGroupBanGRPC) (*emptypb.Empty, error)
- func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupDecrease(context.Context, *model.EventNoticeGroupDecreaseGRPC) (*emptypb.Empty, error)
- func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupIncrease(context.Context, *model.EventNoticeGroupIncreaseGRPC) (*emptypb.Empty, error)
- func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupNotifyHonor(context.Context, *model.EventNoticeGroupNotifyHonorGRPC) (*emptypb.Empty, error)
- func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupNotifyLuckyKing(context.Context, *model.EventNoticeGroupNotifyLuckyKingGRPC) (*emptypb.Empty, error)
- func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupNotifyPoke(context.Context, *model.EventNoticeGroupNotifyPokeGRPC) (*emptypb.Empty, error)
- func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupRecall(context.Context, *model.EventNoticeGroupRecallGRPC) (*emptypb.Empty, error)
- func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupUpload(context.Context, *model.EventNoticeGroupUploadGRPC) (*emptypb.Empty, error)
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.
func NewOnebotEventNoticeGRPCServiceClient ¶
func NewOnebotEventNoticeGRPCServiceClient(cc grpc.ClientConnInterface) OnebotEventNoticeGRPCServiceClient
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) HandleNoticeFriendAdd(context.Context, *model.EventNoticeFriendAddGRPC) (*emptypb.Empty, error)
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeFriendRecall ¶
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeFriendRecall(context.Context, *model.EventNoticeFriendRecallGRPC) (*emptypb.Empty, error)
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupAdmin ¶
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupAdmin(context.Context, *model.EventNoticeGroupAdminGRPC) (*emptypb.Empty, error)
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupBan ¶
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupBan(context.Context, *model.EventNoticeGroupBanGRPC) (*emptypb.Empty, error)
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupDecrease ¶
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupDecrease(context.Context, *model.EventNoticeGroupDecreaseGRPC) (*emptypb.Empty, error)
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupIncrease ¶
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupIncrease(context.Context, *model.EventNoticeGroupIncreaseGRPC) (*emptypb.Empty, error)
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupNotifyHonor ¶
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupNotifyHonor(context.Context, *model.EventNoticeGroupNotifyHonorGRPC) (*emptypb.Empty, error)
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupNotifyLuckyKing ¶
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupNotifyLuckyKing(context.Context, *model.EventNoticeGroupNotifyLuckyKingGRPC) (*emptypb.Empty, error)
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupNotifyPoke ¶
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupNotifyPoke(context.Context, *model.EventNoticeGroupNotifyPokeGRPC) (*emptypb.Empty, error)
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupRecall ¶
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupRecall(context.Context, *model.EventNoticeGroupRecallGRPC) (*emptypb.Empty, error)
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupUpload ¶
func (*UnimplementedOnebotEventNoticeGRPCServiceServer) HandleNoticeGroupUpload(context.Context, *model.EventNoticeGroupUploadGRPC) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.