event

package
v0.0.0-...-b9f283a Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_plus_event_proto protoreflect.FileDescriptor

Functions

func RegisterOnebotEventCallbackGRPCServer

func RegisterOnebotEventCallbackGRPCServer(s *grpc.Server, srv OnebotEventCallbackGRPCServer)

Types

type EventMessageGroupGRPCWithOnebotApi

type EventMessageGroupGRPCWithOnebotApi struct {
	OnebotApi uint32                       `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventMessageGroupGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventMessageGroupGRPCWithOnebotApi) Descriptor deprecated

func (*EventMessageGroupGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventMessageGroupGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventMessageGroupGRPCWithOnebotApi) GetMessage

func (*EventMessageGroupGRPCWithOnebotApi) GetOnebotApi

func (x *EventMessageGroupGRPCWithOnebotApi) GetOnebotApi() uint32

func (*EventMessageGroupGRPCWithOnebotApi) ProtoMessage

func (*EventMessageGroupGRPCWithOnebotApi) ProtoMessage()

func (*EventMessageGroupGRPCWithOnebotApi) ProtoReflect

func (*EventMessageGroupGRPCWithOnebotApi) Reset

func (*EventMessageGroupGRPCWithOnebotApi) String

type EventMessagePrivateGRPCWithOnebotApi

type EventMessagePrivateGRPCWithOnebotApi struct {
	OnebotApi uint32                         `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventMessagePrivateGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventMessagePrivateGRPCWithOnebotApi) Descriptor deprecated

func (*EventMessagePrivateGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventMessagePrivateGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventMessagePrivateGRPCWithOnebotApi) GetMessage

func (*EventMessagePrivateGRPCWithOnebotApi) GetOnebotApi

func (x *EventMessagePrivateGRPCWithOnebotApi) GetOnebotApi() uint32

func (*EventMessagePrivateGRPCWithOnebotApi) ProtoMessage

func (*EventMessagePrivateGRPCWithOnebotApi) ProtoMessage()

func (*EventMessagePrivateGRPCWithOnebotApi) ProtoReflect

func (*EventMessagePrivateGRPCWithOnebotApi) Reset

func (*EventMessagePrivateGRPCWithOnebotApi) String

type EventMetaHeartbeatGRPCWithOnebotApi

type EventMetaHeartbeatGRPCWithOnebotApi struct {
	OnebotApi uint32                        `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventMetaHeartbeatGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventMetaHeartbeatGRPCWithOnebotApi) Descriptor deprecated

func (*EventMetaHeartbeatGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventMetaHeartbeatGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventMetaHeartbeatGRPCWithOnebotApi) GetMessage

func (*EventMetaHeartbeatGRPCWithOnebotApi) GetOnebotApi

func (x *EventMetaHeartbeatGRPCWithOnebotApi) GetOnebotApi() uint32

func (*EventMetaHeartbeatGRPCWithOnebotApi) ProtoMessage

func (*EventMetaHeartbeatGRPCWithOnebotApi) ProtoMessage()

func (*EventMetaHeartbeatGRPCWithOnebotApi) ProtoReflect

func (*EventMetaHeartbeatGRPCWithOnebotApi) Reset

func (*EventMetaHeartbeatGRPCWithOnebotApi) String

type EventMetaLifecycleGRPCWithOnebotApi

type EventMetaLifecycleGRPCWithOnebotApi struct {
	OnebotApi uint32                        `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventMetaLifecycleGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventMetaLifecycleGRPCWithOnebotApi) Descriptor deprecated

func (*EventMetaLifecycleGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventMetaLifecycleGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventMetaLifecycleGRPCWithOnebotApi) GetMessage

func (*EventMetaLifecycleGRPCWithOnebotApi) GetOnebotApi

func (x *EventMetaLifecycleGRPCWithOnebotApi) GetOnebotApi() uint32

func (*EventMetaLifecycleGRPCWithOnebotApi) ProtoMessage

func (*EventMetaLifecycleGRPCWithOnebotApi) ProtoMessage()

func (*EventMetaLifecycleGRPCWithOnebotApi) ProtoReflect

func (*EventMetaLifecycleGRPCWithOnebotApi) Reset

func (*EventMetaLifecycleGRPCWithOnebotApi) String

type EventNoticeFriendAddGRPCWithOnebotApi

type EventNoticeFriendAddGRPCWithOnebotApi struct {
	OnebotApi uint32                          `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventNoticeFriendAddGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventNoticeFriendAddGRPCWithOnebotApi) Descriptor deprecated

func (*EventNoticeFriendAddGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventNoticeFriendAddGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventNoticeFriendAddGRPCWithOnebotApi) GetMessage

func (*EventNoticeFriendAddGRPCWithOnebotApi) GetOnebotApi

func (*EventNoticeFriendAddGRPCWithOnebotApi) ProtoMessage

func (*EventNoticeFriendAddGRPCWithOnebotApi) ProtoMessage()

func (*EventNoticeFriendAddGRPCWithOnebotApi) ProtoReflect

func (*EventNoticeFriendAddGRPCWithOnebotApi) Reset

func (*EventNoticeFriendAddGRPCWithOnebotApi) String

type EventNoticeFriendRecallGRPCWithOnebotApi

type EventNoticeFriendRecallGRPCWithOnebotApi struct {
	OnebotApi uint32                             `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventNoticeFriendRecallGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventNoticeFriendRecallGRPCWithOnebotApi) Descriptor deprecated

func (*EventNoticeFriendRecallGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventNoticeFriendRecallGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventNoticeFriendRecallGRPCWithOnebotApi) GetMessage

func (*EventNoticeFriendRecallGRPCWithOnebotApi) GetOnebotApi

func (*EventNoticeFriendRecallGRPCWithOnebotApi) ProtoMessage

func (*EventNoticeFriendRecallGRPCWithOnebotApi) ProtoReflect

func (*EventNoticeFriendRecallGRPCWithOnebotApi) Reset

func (*EventNoticeFriendRecallGRPCWithOnebotApi) String

type EventNoticeGroupAdminGRPCWithOnebotApi

type EventNoticeGroupAdminGRPCWithOnebotApi struct {
	OnebotApi uint32                           `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventNoticeGroupAdminGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventNoticeGroupAdminGRPCWithOnebotApi) Descriptor deprecated

func (*EventNoticeGroupAdminGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventNoticeGroupAdminGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventNoticeGroupAdminGRPCWithOnebotApi) GetMessage

func (*EventNoticeGroupAdminGRPCWithOnebotApi) GetOnebotApi

func (*EventNoticeGroupAdminGRPCWithOnebotApi) ProtoMessage

func (*EventNoticeGroupAdminGRPCWithOnebotApi) ProtoReflect

func (*EventNoticeGroupAdminGRPCWithOnebotApi) Reset

func (*EventNoticeGroupAdminGRPCWithOnebotApi) String

type EventNoticeGroupBanGRPCWithOnebotApi

type EventNoticeGroupBanGRPCWithOnebotApi struct {
	OnebotApi uint32                         `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventNoticeGroupBanGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventNoticeGroupBanGRPCWithOnebotApi) Descriptor deprecated

func (*EventNoticeGroupBanGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventNoticeGroupBanGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventNoticeGroupBanGRPCWithOnebotApi) GetMessage

func (*EventNoticeGroupBanGRPCWithOnebotApi) GetOnebotApi

func (x *EventNoticeGroupBanGRPCWithOnebotApi) GetOnebotApi() uint32

func (*EventNoticeGroupBanGRPCWithOnebotApi) ProtoMessage

func (*EventNoticeGroupBanGRPCWithOnebotApi) ProtoMessage()

func (*EventNoticeGroupBanGRPCWithOnebotApi) ProtoReflect

func (*EventNoticeGroupBanGRPCWithOnebotApi) Reset

func (*EventNoticeGroupBanGRPCWithOnebotApi) String

type EventNoticeGroupDecreaseGRPCWithOnebotApi

type EventNoticeGroupDecreaseGRPCWithOnebotApi struct {
	OnebotApi uint32                              `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventNoticeGroupDecreaseGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventNoticeGroupDecreaseGRPCWithOnebotApi) Descriptor deprecated

func (*EventNoticeGroupDecreaseGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventNoticeGroupDecreaseGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventNoticeGroupDecreaseGRPCWithOnebotApi) GetMessage

func (*EventNoticeGroupDecreaseGRPCWithOnebotApi) GetOnebotApi

func (*EventNoticeGroupDecreaseGRPCWithOnebotApi) ProtoMessage

func (*EventNoticeGroupDecreaseGRPCWithOnebotApi) ProtoReflect

func (*EventNoticeGroupDecreaseGRPCWithOnebotApi) Reset

func (*EventNoticeGroupDecreaseGRPCWithOnebotApi) String

type EventNoticeGroupIncreaseGRPCWithOnebotApi

type EventNoticeGroupIncreaseGRPCWithOnebotApi struct {
	OnebotApi uint32                              `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventNoticeGroupIncreaseGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventNoticeGroupIncreaseGRPCWithOnebotApi) Descriptor deprecated

func (*EventNoticeGroupIncreaseGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventNoticeGroupIncreaseGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventNoticeGroupIncreaseGRPCWithOnebotApi) GetMessage

func (*EventNoticeGroupIncreaseGRPCWithOnebotApi) GetOnebotApi

func (*EventNoticeGroupIncreaseGRPCWithOnebotApi) ProtoMessage

func (*EventNoticeGroupIncreaseGRPCWithOnebotApi) ProtoReflect

func (*EventNoticeGroupIncreaseGRPCWithOnebotApi) Reset

func (*EventNoticeGroupIncreaseGRPCWithOnebotApi) String

type EventNoticeGroupNotifyHonorGRPCWithOnebotApi

type EventNoticeGroupNotifyHonorGRPCWithOnebotApi struct {
	OnebotApi uint32                                 `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventNoticeGroupNotifyHonorGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventNoticeGroupNotifyHonorGRPCWithOnebotApi) Descriptor deprecated

Deprecated: Use EventNoticeGroupNotifyHonorGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventNoticeGroupNotifyHonorGRPCWithOnebotApi) GetMessage

func (*EventNoticeGroupNotifyHonorGRPCWithOnebotApi) GetOnebotApi

func (*EventNoticeGroupNotifyHonorGRPCWithOnebotApi) ProtoMessage

func (*EventNoticeGroupNotifyHonorGRPCWithOnebotApi) ProtoReflect

func (*EventNoticeGroupNotifyHonorGRPCWithOnebotApi) Reset

func (*EventNoticeGroupNotifyHonorGRPCWithOnebotApi) String

type EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi

type EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi struct {
	OnebotApi uint32                                     `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventNoticeGroupNotifyLuckyKingGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi) Descriptor deprecated

Deprecated: Use EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi) GetMessage

func (*EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi) GetOnebotApi

func (*EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi) ProtoMessage

func (*EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi) ProtoReflect

func (*EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi) Reset

func (*EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi) String

type EventNoticeGroupNotifyPokeGRPCWithOnebotApi

type EventNoticeGroupNotifyPokeGRPCWithOnebotApi struct {
	OnebotApi uint32                                `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventNoticeGroupNotifyPokeGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventNoticeGroupNotifyPokeGRPCWithOnebotApi) Descriptor deprecated

Deprecated: Use EventNoticeGroupNotifyPokeGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventNoticeGroupNotifyPokeGRPCWithOnebotApi) GetMessage

func (*EventNoticeGroupNotifyPokeGRPCWithOnebotApi) GetOnebotApi

func (*EventNoticeGroupNotifyPokeGRPCWithOnebotApi) ProtoMessage

func (*EventNoticeGroupNotifyPokeGRPCWithOnebotApi) ProtoReflect

func (*EventNoticeGroupNotifyPokeGRPCWithOnebotApi) Reset

func (*EventNoticeGroupNotifyPokeGRPCWithOnebotApi) String

type EventNoticeGroupRecallGRPCWithOnebotApi

type EventNoticeGroupRecallGRPCWithOnebotApi struct {
	OnebotApi uint32                            `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventNoticeGroupRecallGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventNoticeGroupRecallGRPCWithOnebotApi) Descriptor deprecated

func (*EventNoticeGroupRecallGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventNoticeGroupRecallGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventNoticeGroupRecallGRPCWithOnebotApi) GetMessage

func (*EventNoticeGroupRecallGRPCWithOnebotApi) GetOnebotApi

func (*EventNoticeGroupRecallGRPCWithOnebotApi) ProtoMessage

func (*EventNoticeGroupRecallGRPCWithOnebotApi) ProtoReflect

func (*EventNoticeGroupRecallGRPCWithOnebotApi) Reset

func (*EventNoticeGroupRecallGRPCWithOnebotApi) String

type EventNoticeGroupUploadGRPCWithOnebotApi

type EventNoticeGroupUploadGRPCWithOnebotApi struct {
	OnebotApi uint32                            `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventNoticeGroupUploadGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventNoticeGroupUploadGRPCWithOnebotApi) Descriptor deprecated

func (*EventNoticeGroupUploadGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventNoticeGroupUploadGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventNoticeGroupUploadGRPCWithOnebotApi) GetMessage

func (*EventNoticeGroupUploadGRPCWithOnebotApi) GetOnebotApi

func (*EventNoticeGroupUploadGRPCWithOnebotApi) ProtoMessage

func (*EventNoticeGroupUploadGRPCWithOnebotApi) ProtoReflect

func (*EventNoticeGroupUploadGRPCWithOnebotApi) Reset

func (*EventNoticeGroupUploadGRPCWithOnebotApi) String

type EventRequestFriendGRPCWithOnebotApi

type EventRequestFriendGRPCWithOnebotApi struct {
	OnebotApi uint32                        `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventRequestFriendGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRequestFriendGRPCWithOnebotApi) Descriptor deprecated

func (*EventRequestFriendGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventRequestFriendGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventRequestFriendGRPCWithOnebotApi) GetMessage

func (*EventRequestFriendGRPCWithOnebotApi) GetOnebotApi

func (x *EventRequestFriendGRPCWithOnebotApi) GetOnebotApi() uint32

func (*EventRequestFriendGRPCWithOnebotApi) ProtoMessage

func (*EventRequestFriendGRPCWithOnebotApi) ProtoMessage()

func (*EventRequestFriendGRPCWithOnebotApi) ProtoReflect

func (*EventRequestFriendGRPCWithOnebotApi) Reset

func (*EventRequestFriendGRPCWithOnebotApi) String

type EventRequestGroupGRPCWithOnebotApi

type EventRequestGroupGRPCWithOnebotApi struct {
	OnebotApi uint32                       `protobuf:"varint,1,opt,name=onebotApi,proto3" json:"onebotApi,omitempty"`
	Message   *model.EventRequestGroupGRPC `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRequestGroupGRPCWithOnebotApi) Descriptor deprecated

func (*EventRequestGroupGRPCWithOnebotApi) Descriptor() ([]byte, []int)

Deprecated: Use EventRequestGroupGRPCWithOnebotApi.ProtoReflect.Descriptor instead.

func (*EventRequestGroupGRPCWithOnebotApi) GetMessage

func (*EventRequestGroupGRPCWithOnebotApi) GetOnebotApi

func (x *EventRequestGroupGRPCWithOnebotApi) GetOnebotApi() uint32

func (*EventRequestGroupGRPCWithOnebotApi) ProtoMessage

func (*EventRequestGroupGRPCWithOnebotApi) ProtoMessage()

func (*EventRequestGroupGRPCWithOnebotApi) ProtoReflect

func (*EventRequestGroupGRPCWithOnebotApi) Reset

func (*EventRequestGroupGRPCWithOnebotApi) String

type OnebotEventCallBackInterface

type OnebotEventCallBackInterface interface {
	HandleMessagePrivate(data *model.EventMessagePrivate, onebotApi api.OnebotApiClientInterface) error
	HandleMessageGroup(data *model.EventMessageGroup, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupUpload(data *model.EventNoticeGroupUpload, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupAdmin(data *model.EventNoticeGroupAdmin, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupDecrease(data *model.EventNoticeGroupDecrease, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupIncrease(data *model.EventNoticeGroupIncrease, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupBan(data *model.EventNoticeGroupBan, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeFriendAdd(data *model.EventNoticeFriendAdd, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupRecall(data *model.EventNoticeGroupRecall, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeFriendRecall(data *model.EventNoticeFriendRecall, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupNotifyPoke(data *model.EventNoticeGroupNotifyPoke, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupNotifyHonor(data *model.EventNoticeGroupNotifyHonor, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupNotifyLuckyKing(data *model.EventNoticeGroupNotifyLuckyKing, onebotApi api.OnebotApiClientInterface) error
	HandleRequestFriend(data *model.EventRequestFriend, onebotApi api.OnebotApiClientInterface) error
	HandleRequestGroup(data *model.EventRequestGroup, onebotApi api.OnebotApiClientInterface) error
	HandleMetaLifecycle(data *model.EventMetaLifecycle, onebotApi api.OnebotApiClientInterface) error
	HandleMetaHeartBeat(data *model.EventMetaHeartbeat, onebotApi api.OnebotApiClientInterface) error
}

type OnebotEventCallbackClientStub

type OnebotEventCallbackClientStub struct {
	Broker *plugin.GRPCBroker
	Client OnebotEventCallbackGRPCClient
}

业务接口的实现,通过gRPC客户端转发请求给插件进程

func (*OnebotEventCallbackClientStub) HandleMessageGroup

func (*OnebotEventCallbackClientStub) HandleMessagePrivate

func (*OnebotEventCallbackClientStub) HandleMetaHeartBeat

func (*OnebotEventCallbackClientStub) HandleMetaLifecycle

func (*OnebotEventCallbackClientStub) HandleNoticeFriendAdd

func (eCli *OnebotEventCallbackClientStub) HandleNoticeFriendAdd(data *model.EventNoticeFriendAdd, onebotApi sdk_api.OnebotApiClientInterface) error

func (*OnebotEventCallbackClientStub) HandleNoticeFriendRecall

func (eCli *OnebotEventCallbackClientStub) HandleNoticeFriendRecall(data *model.EventNoticeFriendRecall, onebotApi sdk_api.OnebotApiClientInterface) error

func (*OnebotEventCallbackClientStub) HandleNoticeGroupAdmin

func (eCli *OnebotEventCallbackClientStub) HandleNoticeGroupAdmin(data *model.EventNoticeGroupAdmin, onebotApi sdk_api.OnebotApiClientInterface) error

func (*OnebotEventCallbackClientStub) HandleNoticeGroupBan

func (*OnebotEventCallbackClientStub) HandleNoticeGroupDecrease

func (eCli *OnebotEventCallbackClientStub) HandleNoticeGroupDecrease(data *model.EventNoticeGroupDecrease, onebotApi sdk_api.OnebotApiClientInterface) error

func (*OnebotEventCallbackClientStub) HandleNoticeGroupIncrease

func (eCli *OnebotEventCallbackClientStub) HandleNoticeGroupIncrease(data *model.EventNoticeGroupIncrease, onebotApi sdk_api.OnebotApiClientInterface) error

func (*OnebotEventCallbackClientStub) HandleNoticeGroupNotifyHonor

func (eCli *OnebotEventCallbackClientStub) HandleNoticeGroupNotifyHonor(data *model.EventNoticeGroupNotifyHonor, onebotApi sdk_api.OnebotApiClientInterface) error

func (*OnebotEventCallbackClientStub) HandleNoticeGroupNotifyLuckyKing

func (eCli *OnebotEventCallbackClientStub) HandleNoticeGroupNotifyLuckyKing(data *model.EventNoticeGroupNotifyLuckyKing, onebotApi sdk_api.OnebotApiClientInterface) error

func (*OnebotEventCallbackClientStub) HandleNoticeGroupNotifyPoke

func (eCli *OnebotEventCallbackClientStub) HandleNoticeGroupNotifyPoke(data *model.EventNoticeGroupNotifyPoke, onebotApi sdk_api.OnebotApiClientInterface) error

func (*OnebotEventCallbackClientStub) HandleNoticeGroupRecall

func (eCli *OnebotEventCallbackClientStub) HandleNoticeGroupRecall(data *model.EventNoticeGroupRecall, onebotApi sdk_api.OnebotApiClientInterface) error

func (*OnebotEventCallbackClientStub) HandleNoticeGroupUpload

func (eCli *OnebotEventCallbackClientStub) HandleNoticeGroupUpload(data *model.EventNoticeGroupUpload, onebotApi sdk_api.OnebotApiClientInterface) error

func (*OnebotEventCallbackClientStub) HandleRequestFriend

func (*OnebotEventCallbackClientStub) HandleRequestGroup

type OnebotEventCallbackGRPCClient

type OnebotEventCallbackGRPCClient interface {
	// HandleMessagePrivate(data *model.EventMessagePrivate, onebotApi api.OnebotApiClientInterface) error
	HandleMessagePrivate(ctx context.Context, in *EventMessagePrivateGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleMessageGroup(data *model.EventMessageGroup, onebotApi api.OnebotApiClientInterface) error
	HandleMessageGroup(ctx context.Context, in *EventMessageGroupGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleNoticeGroupUpload(data *model.EventNoticeGroupUpload, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupUpload(ctx context.Context, in *EventNoticeGroupUploadGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleNoticeGroupAdmin(data *model.EventNoticeGroupAdmin, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupAdmin(ctx context.Context, in *EventNoticeGroupAdminGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleNoticeGroupDecrease(data *model.EventNoticeGroupDecrease, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupDecrease(ctx context.Context, in *EventNoticeGroupDecreaseGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleNoticeGroupIncrease(data *model.EventNoticeGroupIncrease, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupIncrease(ctx context.Context, in *EventNoticeGroupIncreaseGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleNoticeGroupBan(data *model.EventNoticeGroupBan, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupBan(ctx context.Context, in *EventNoticeGroupBanGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleNoticeFriendAdd(data *model.EventNoticeFriendAdd, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeFriendAdd(ctx context.Context, in *EventNoticeFriendAddGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleNoticeGroupRecall(data *model.EventNoticeGroupRecall, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupRecall(ctx context.Context, in *EventNoticeGroupRecallGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleNoticeFriendRecall(data *model.EventNoticeFriendRecall, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeFriendRecall(ctx context.Context, in *EventNoticeFriendRecallGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleNoticeGroupNotifyPoke(data *model.EventNoticeGroupNotifyPoke, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupNotifyPoke(ctx context.Context, in *EventNoticeGroupNotifyPokeGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleNoticeGroupNotifyHonor(data *model.EventNoticeGroupNotifyHonor, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupNotifyHonor(ctx context.Context, in *EventNoticeGroupNotifyHonorGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleNoticeGroupNotifyLuckyKing(data *model.EventNoticeGroupNotifyLuckyKing, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupNotifyLuckyKing(ctx context.Context, in *EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleRequestFriend(data *model.EventRequestFriend, onebotApi api.OnebotApiClientInterface) error
	HandleRequestFriend(ctx context.Context, in *EventRequestFriendGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleRequestGroup(data *model.EventRequestGroup, onebotApi api.OnebotApiClientInterface) error
	HandleRequestGroup(ctx context.Context, in *EventRequestGroupGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleMetaLifecycle(data *model.EventMetaLifecycle, onebotApi api.OnebotApiClientInterface) error
	HandleMetaLifecycle(ctx context.Context, in *EventMetaLifecycleGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleMetaHeartBeat(data *model.EventMetaHeartbeat, onebotApi api.OnebotApiClientInterface) error
	HandleMetaHeartBeat(ctx context.Context, in *EventMetaHeartbeatGRPCWithOnebotApi, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

OnebotEventCallbackGRPCClient is the client API for OnebotEventCallbackGRPC service.

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

type OnebotEventCallbackGRPCServer

type OnebotEventCallbackGRPCServer interface {
	// HandleMessagePrivate(data *model.EventMessagePrivate, onebotApi api.OnebotApiClientInterface) error
	HandleMessagePrivate(context.Context, *EventMessagePrivateGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleMessageGroup(data *model.EventMessageGroup, onebotApi api.OnebotApiClientInterface) error
	HandleMessageGroup(context.Context, *EventMessageGroupGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleNoticeGroupUpload(data *model.EventNoticeGroupUpload, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupUpload(context.Context, *EventNoticeGroupUploadGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleNoticeGroupAdmin(data *model.EventNoticeGroupAdmin, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupAdmin(context.Context, *EventNoticeGroupAdminGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleNoticeGroupDecrease(data *model.EventNoticeGroupDecrease, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupDecrease(context.Context, *EventNoticeGroupDecreaseGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleNoticeGroupIncrease(data *model.EventNoticeGroupIncrease, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupIncrease(context.Context, *EventNoticeGroupIncreaseGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleNoticeGroupBan(data *model.EventNoticeGroupBan, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupBan(context.Context, *EventNoticeGroupBanGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleNoticeFriendAdd(data *model.EventNoticeFriendAdd, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeFriendAdd(context.Context, *EventNoticeFriendAddGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleNoticeGroupRecall(data *model.EventNoticeGroupRecall, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupRecall(context.Context, *EventNoticeGroupRecallGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleNoticeFriendRecall(data *model.EventNoticeFriendRecall, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeFriendRecall(context.Context, *EventNoticeFriendRecallGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleNoticeGroupNotifyPoke(data *model.EventNoticeGroupNotifyPoke, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupNotifyPoke(context.Context, *EventNoticeGroupNotifyPokeGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleNoticeGroupNotifyHonor(data *model.EventNoticeGroupNotifyHonor, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupNotifyHonor(context.Context, *EventNoticeGroupNotifyHonorGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleNoticeGroupNotifyLuckyKing(data *model.EventNoticeGroupNotifyLuckyKing, onebotApi api.OnebotApiClientInterface) error
	HandleNoticeGroupNotifyLuckyKing(context.Context, *EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleRequestFriend(data *model.EventRequestFriend, onebotApi api.OnebotApiClientInterface) error
	HandleRequestFriend(context.Context, *EventRequestFriendGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleRequestGroup(data *model.EventRequestGroup, onebotApi api.OnebotApiClientInterface) error
	HandleRequestGroup(context.Context, *EventRequestGroupGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleMetaLifecycle(data *model.EventMetaLifecycle, onebotApi api.OnebotApiClientInterface) error
	HandleMetaLifecycle(context.Context, *EventMetaLifecycleGRPCWithOnebotApi) (*emptypb.Empty, error)
	// HandleMetaHeartBeat(data *model.EventMetaHeartbeat, onebotApi api.OnebotApiClientInterface) error
	HandleMetaHeartBeat(context.Context, *EventMetaHeartbeatGRPCWithOnebotApi) (*emptypb.Empty, error)
}

OnebotEventCallbackGRPCServer is the server API for OnebotEventCallbackGRPC service.

type OnebotEventCallbackServerStub

type OnebotEventCallbackServerStub struct {
	Broker *plugin.GRPCBroker
	// 具体实现,仅当业务接口实现基于Go时该字段有用
	Impl OnebotEventCallBackInterface
}

func (*OnebotEventCallbackServerStub) HandleMessageGroup

HandleMessageGroup(data *model.EventMessageGroup, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleMessagePrivate

HandleMessagePrivate(data *model.EventMessagePrivate, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleMetaHeartBeat

HandleMetaHeartBeat(data *model.EventMetaHeartbeat, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleMetaLifecycle

HandleMetaLifecycle(data *model.EventMetaLifecycle, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleNoticeFriendAdd

HandleNoticeFriendAdd(data *model.EventNoticeFriendAdd, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleNoticeFriendRecall

HandleNoticeFriendRecall(data *model.EventNoticeFriendRecall, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleNoticeGroupAdmin

HandleNoticeGroupAdmin(data *model.EventNoticeGroupAdmin, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleNoticeGroupBan

HandleNoticeGroupBan(data *model.EventNoticeGroupBan, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleNoticeGroupDecrease

HandleNoticeGroupDecrease(data *model.EventNoticeGroupDecrease, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleNoticeGroupIncrease

HandleNoticeGroupIncrease(data *model.EventNoticeGroupIncrease, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleNoticeGroupNotifyHonor

HandleNoticeGroupNotifyHonor(data *model.EventNoticeGroupNotifyHonor, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleNoticeGroupNotifyLuckyKing

HandleNoticeGroupNotifyLuckyKing(data *model.EventNoticeGroupNotifyLuckyKing, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleNoticeGroupNotifyPoke

HandleNoticeGroupNotifyPoke(data *model.EventNoticeGroupNotifyPoke, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleNoticeGroupRecall

HandleNoticeGroupRecall(data *model.EventNoticeGroupRecall, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleNoticeGroupUpload

HandleNoticeGroupUpload(data *model.EventNoticeGroupUpload, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleRequestFriend

HandleRequestFriend(data *model.EventRequestFriend, onebotApi api.OnebotApiClientInterface) error

func (*OnebotEventCallbackServerStub) HandleRequestGroup

HandleRequestGroup(data *model.EventRequestGroup, onebotApi api.OnebotApiClientInterface) error

type OnebotEventGRPCPlugin

type OnebotEventGRPCPlugin struct {
	// 需要嵌入插件接口
	plugin.Plugin
	// 具体实现,仅当业务接口实现基于Go时该字段有用
	Impl OnebotEventCallBackInterface
}

func (*OnebotEventGRPCPlugin) GRPCClient

func (p *OnebotEventGRPCPlugin) GRPCClient(
	ctx context.Context,
	broker *plugin.GRPCBroker,
	c *grpc.ClientConn,
) (interface{}, error)

插件实现GRPC的接口

func (*OnebotEventGRPCPlugin) GRPCServer

func (p *OnebotEventGRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

插件实现GRPC的接口

type UnimplementedOnebotEventCallbackGRPCServer

type UnimplementedOnebotEventCallbackGRPCServer struct {
}

UnimplementedOnebotEventCallbackGRPCServer can be embedded to have forward compatible implementations.

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleMessageGroup

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleMessagePrivate

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleMetaHeartBeat

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleMetaLifecycle

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleNoticeFriendAdd

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleNoticeFriendRecall

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleNoticeGroupAdmin

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleNoticeGroupBan

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleNoticeGroupDecrease

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleNoticeGroupIncrease

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleNoticeGroupNotifyHonor

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleNoticeGroupNotifyLuckyKing

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleNoticeGroupNotifyPoke

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleNoticeGroupRecall

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleNoticeGroupUpload

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleRequestFriend

func (*UnimplementedOnebotEventCallbackGRPCServer) HandleRequestGroup

Jump to

Keyboard shortcuts

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