Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterOnebotApiAccountGRPCServiceServer(s *grpc.Server, srv OnebotApiAccountGRPCServiceServer)
- type ChannelApiAccountClient
- func (cli *ChannelApiAccountClient) GetLoginInfo() (*model.AccountResult, error)
- func (cli *ChannelApiAccountClient) GetModelShow() (*model.ModelShowResult, error)
- func (cli *ChannelApiAccountClient) GetOnlineClients() (*model.OnlineClientsResult, error)
- func (cli *ChannelApiAccountClient) SetModelShow(model, modelshow string) error
- func (cli *ChannelApiAccountClient) SetQQProfile(profile *model.QQProfile) error
- type OnebotApiAccountClient
- type OnebotApiAccountGRPCServiceClient
- type OnebotApiAccountGRPCServiceServer
- type SetModelShowRequest
- func (*SetModelShowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetModelShowRequest) GetModel() string
- func (x *SetModelShowRequest) GetModelshow() string
- func (*SetModelShowRequest) ProtoMessage()
- func (x *SetModelShowRequest) ProtoReflect() protoreflect.Message
- func (x *SetModelShowRequest) Reset()
- func (x *SetModelShowRequest) String() string
- type UnimplementedOnebotApiAccountGRPCServiceServer
- func (*UnimplementedOnebotApiAccountGRPCServiceServer) GetLoginInfo(context.Context, *emptypb.Empty) (*model.AccountResultGRPC, error)
- func (*UnimplementedOnebotApiAccountGRPCServiceServer) GetModelShow(context.Context, *emptypb.Empty) (*model.ModelShowResultGRPC, error)
- func (*UnimplementedOnebotApiAccountGRPCServiceServer) GetOnlineClients(context.Context, *emptypb.Empty) (*model.OnlineClientsResultGRPC, error)
- func (*UnimplementedOnebotApiAccountGRPCServiceServer) SetModelShow(context.Context, *SetModelShowRequest) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiAccountGRPCServiceServer) SetQQProfile(context.Context, *model.QQProfileGRPC) (*emptypb.Empty, error)
Constants ¶
View Source
const ( API_GET_LOGIN_INFO = "get_login_info" API_SET_QQ_PROFILE = "set_qq_profile" API__GET_MODEL_SHOW = "_get_model_show" API__SET_MODEL_SHOW = "_set_model_show" API_GET_ONLINE_CLIENTS = "get_online_clients" )
Variables ¶
View Source
var File_api_account_proto protoreflect.FileDescriptor
Functions ¶
func RegisterOnebotApiAccountGRPCServiceServer ¶
func RegisterOnebotApiAccountGRPCServiceServer(s *grpc.Server, srv OnebotApiAccountGRPCServiceServer)
Types ¶
type ChannelApiAccountClient ¶
type ChannelApiAccountClient struct {
channel.ApiChannel
}
func (*ChannelApiAccountClient) GetLoginInfo ¶
func (cli *ChannelApiAccountClient) GetLoginInfo() (*model.AccountResult, error)
func (*ChannelApiAccountClient) GetModelShow ¶
func (cli *ChannelApiAccountClient) GetModelShow() (*model.ModelShowResult, error)
func (*ChannelApiAccountClient) GetOnlineClients ¶
func (cli *ChannelApiAccountClient) GetOnlineClients() (*model.OnlineClientsResult, error)
func (*ChannelApiAccountClient) SetModelShow ¶
func (cli *ChannelApiAccountClient) SetModelShow(model, modelshow string) error
func (*ChannelApiAccountClient) SetQQProfile ¶
func (cli *ChannelApiAccountClient) SetQQProfile(profile *model.QQProfile) error
type OnebotApiAccountClient ¶
type OnebotApiAccountClient interface { // 获取登录号信息 // get_login_info GetLoginInfo() (*model.AccountResult, error) // 设置登录号资料 // set_login_info SetQQProfile(profile *model.QQProfile) error // 获取在线机型 // _get_model_show GetModelShow() (*model.ModelShowResult, error) // 设置在线机型 // _set_model_show // model: 机型 // modelshow: 机型展示 SetModelShow(model, modelshow string) error // 获取在线客户端列表 // get_online_clients GetOnlineClients() (*model.OnlineClientsResult, error) }
func NewChannelApiAccountClient ¶
func NewChannelApiAccountClient(channel channel.ApiChannel) (OnebotApiAccountClient, error)
type OnebotApiAccountGRPCServiceClient ¶
type OnebotApiAccountGRPCServiceClient interface { GetLoginInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*model.AccountResultGRPC, error) SetQQProfile(ctx context.Context, in *model.QQProfileGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error) GetModelShow(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*model.ModelShowResultGRPC, error) SetModelShow(ctx context.Context, in *SetModelShowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetOnlineClients(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*model.OnlineClientsResultGRPC, error) }
OnebotApiAccountGRPCServiceClient is the client API for OnebotApiAccountGRPCService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOnebotApiAccountGRPCServiceClient ¶
func NewOnebotApiAccountGRPCServiceClient(cc grpc.ClientConnInterface) OnebotApiAccountGRPCServiceClient
type OnebotApiAccountGRPCServiceServer ¶
type OnebotApiAccountGRPCServiceServer interface { GetLoginInfo(context.Context, *emptypb.Empty) (*model.AccountResultGRPC, error) SetQQProfile(context.Context, *model.QQProfileGRPC) (*emptypb.Empty, error) GetModelShow(context.Context, *emptypb.Empty) (*model.ModelShowResultGRPC, error) SetModelShow(context.Context, *SetModelShowRequest) (*emptypb.Empty, error) GetOnlineClients(context.Context, *emptypb.Empty) (*model.OnlineClientsResultGRPC, error) }
OnebotApiAccountGRPCServiceServer is the server API for OnebotApiAccountGRPCService service.
type SetModelShowRequest ¶
type SetModelShowRequest struct { Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` Modelshow string `protobuf:"bytes,2,opt,name=modelshow,proto3" json:"modelshow,omitempty"` // contains filtered or unexported fields }
func (*SetModelShowRequest) Descriptor
deprecated
func (*SetModelShowRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetModelShowRequest.ProtoReflect.Descriptor instead.
func (*SetModelShowRequest) GetModel ¶
func (x *SetModelShowRequest) GetModel() string
func (*SetModelShowRequest) GetModelshow ¶
func (x *SetModelShowRequest) GetModelshow() string
func (*SetModelShowRequest) ProtoMessage ¶
func (*SetModelShowRequest) ProtoMessage()
func (*SetModelShowRequest) ProtoReflect ¶
func (x *SetModelShowRequest) ProtoReflect() protoreflect.Message
func (*SetModelShowRequest) Reset ¶
func (x *SetModelShowRequest) Reset()
func (*SetModelShowRequest) String ¶
func (x *SetModelShowRequest) String() string
type UnimplementedOnebotApiAccountGRPCServiceServer ¶
type UnimplementedOnebotApiAccountGRPCServiceServer struct { }
UnimplementedOnebotApiAccountGRPCServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedOnebotApiAccountGRPCServiceServer) GetLoginInfo ¶
func (*UnimplementedOnebotApiAccountGRPCServiceServer) GetLoginInfo(context.Context, *emptypb.Empty) (*model.AccountResultGRPC, error)
func (*UnimplementedOnebotApiAccountGRPCServiceServer) GetModelShow ¶
func (*UnimplementedOnebotApiAccountGRPCServiceServer) GetModelShow(context.Context, *emptypb.Empty) (*model.ModelShowResultGRPC, error)
func (*UnimplementedOnebotApiAccountGRPCServiceServer) GetOnlineClients ¶
func (*UnimplementedOnebotApiAccountGRPCServiceServer) GetOnlineClients(context.Context, *emptypb.Empty) (*model.OnlineClientsResultGRPC, error)
func (*UnimplementedOnebotApiAccountGRPCServiceServer) SetModelShow ¶
func (*UnimplementedOnebotApiAccountGRPCServiceServer) SetModelShow(context.Context, *SetModelShowRequest) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiAccountGRPCServiceServer) SetQQProfile ¶
func (*UnimplementedOnebotApiAccountGRPCServiceServer) SetQQProfile(context.Context, *model.QQProfileGRPC) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.