Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDouyinRpcServiceServer(s grpc.ServiceRegistrar, srv DouyinRpcServiceServer)
- type CodeReq
- func (*CodeReq) Descriptor() ([]byte, []int)deprecated
- func (x *CodeReq) GetAnonymousCode() string
- func (x *CodeReq) GetCode() string
- func (x *CodeReq) GetKey() string
- func (*CodeReq) ProtoMessage()
- func (x *CodeReq) ProtoReflect() protoreflect.Message
- func (x *CodeReq) Reset()
- func (x *CodeReq) String() string
- type CodeResp
- func (*CodeResp) Descriptor() ([]byte, []int)deprecated
- func (x *CodeResp) GetCode() int32
- func (x *CodeResp) GetData() *CodeRespData
- func (x *CodeResp) GetMsg() string
- func (x *CodeResp) GetPath() string
- func (x *CodeResp) GetRequestID() string
- func (*CodeResp) ProtoMessage()
- func (x *CodeResp) ProtoReflect() protoreflect.Message
- func (x *CodeResp) Reset()
- func (x *CodeResp) String() string
- type CodeRespData
- func (*CodeRespData) Descriptor() ([]byte, []int)deprecated
- func (x *CodeRespData) GetAnonymousOpenid() string
- func (x *CodeRespData) GetErrNo() int32
- func (x *CodeRespData) GetErrTips() string
- func (x *CodeRespData) GetKey() string
- func (x *CodeRespData) GetOpenid() string
- func (x *CodeRespData) GetSessionKey() string
- func (x *CodeRespData) GetUnionid() string
- func (*CodeRespData) ProtoMessage()
- func (x *CodeRespData) ProtoReflect() protoreflect.Message
- func (x *CodeRespData) Reset()
- func (x *CodeRespData) String() string
- type DouyinRpcServiceClient
- type DouyinRpcServiceServer
- type OaAccessTokenResp
- func (*OaAccessTokenResp) Descriptor() ([]byte, []int)deprecated
- func (x *OaAccessTokenResp) GetCode() int32
- func (x *OaAccessTokenResp) GetData() *OaAccessTokenRespData
- func (x *OaAccessTokenResp) GetMsg() string
- func (x *OaAccessTokenResp) GetPath() string
- func (x *OaAccessTokenResp) GetRequestID() string
- func (*OaAccessTokenResp) ProtoMessage()
- func (x *OaAccessTokenResp) ProtoReflect() protoreflect.Message
- func (x *OaAccessTokenResp) Reset()
- func (x *OaAccessTokenResp) String() string
- type OaAccessTokenRespData
- func (*OaAccessTokenRespData) Descriptor() ([]byte, []int)deprecated
- func (x *OaAccessTokenRespData) GetAccessToken() string
- func (x *OaAccessTokenRespData) GetErrNo() int32
- func (x *OaAccessTokenRespData) GetErrTips() string
- func (x *OaAccessTokenRespData) GetExpiresIn() int64
- func (*OaAccessTokenRespData) ProtoMessage()
- func (x *OaAccessTokenRespData) ProtoReflect() protoreflect.Message
- func (x *OaAccessTokenRespData) Reset()
- func (x *OaAccessTokenRespData) String() string
- type OaKeyReq
- type UnimplementedDouyinRpcServiceServer
- type UnsafeDouyinRpcServiceServer
Constants ¶
const ( DouyinRpcService_Code2Token_FullMethodName = "/douyin.DouyinRpcService/Code2Token" DouyinRpcService_OfficialAccountAccessToken_FullMethodName = "/douyin.DouyinRpcService/OfficialAccountAccessToken" )
Variables ¶
var DouyinRpcService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "douyin.DouyinRpcService", HandlerType: (*DouyinRpcServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Code2Token", Handler: _DouyinRpcService_Code2Token_Handler, }, { MethodName: "OfficialAccountAccessToken", Handler: _DouyinRpcService_OfficialAccountAccessToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "douyin.proto", }
DouyinRpcService_ServiceDesc is the grpc.ServiceDesc for DouyinRpcService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_douyin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDouyinRpcServiceServer ¶
func RegisterDouyinRpcServiceServer(s grpc.ServiceRegistrar, srv DouyinRpcServiceServer)
Types ¶
type CodeReq ¶
type CodeReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` AnonymousCode string `protobuf:"bytes,3,opt,name=anonymousCode,proto3" json:"anonymousCode,omitempty"` // contains filtered or unexported fields }
func (*CodeReq) Descriptor
deprecated
func (*CodeReq) GetAnonymousCode ¶
func (*CodeReq) ProtoMessage ¶
func (*CodeReq) ProtoMessage()
func (*CodeReq) ProtoReflect ¶
func (x *CodeReq) ProtoReflect() protoreflect.Message
type CodeResp ¶
type CodeResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *CodeRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CodeResp) Descriptor
deprecated
func (*CodeResp) GetData ¶
func (x *CodeResp) GetData() *CodeRespData
func (*CodeResp) GetRequestID ¶
func (*CodeResp) ProtoMessage ¶
func (*CodeResp) ProtoMessage()
func (*CodeResp) ProtoReflect ¶
func (x *CodeResp) ProtoReflect() protoreflect.Message
type CodeRespData ¶
type CodeRespData struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` SessionKey string `protobuf:"bytes,2,opt,name=sessionKey,proto3" json:"sessionKey,omitempty"` Openid string `protobuf:"bytes,3,opt,name=openid,proto3" json:"openid,omitempty"` AnonymousOpenid string `protobuf:"bytes,4,opt,name=anonymousOpenid,proto3" json:"anonymousOpenid,omitempty"` Unionid string `protobuf:"bytes,5,opt,name=unionid,proto3" json:"unionid,omitempty"` ErrNo int32 `protobuf:"varint,6,opt,name=errNo,proto3" json:"errNo,omitempty"` ErrTips string `protobuf:"bytes,7,opt,name=errTips,proto3" json:"errTips,omitempty"` // contains filtered or unexported fields }
func (*CodeRespData) Descriptor
deprecated
func (*CodeRespData) Descriptor() ([]byte, []int)
Deprecated: Use CodeRespData.ProtoReflect.Descriptor instead.
func (*CodeRespData) GetAnonymousOpenid ¶
func (x *CodeRespData) GetAnonymousOpenid() string
func (*CodeRespData) GetErrNo ¶
func (x *CodeRespData) GetErrNo() int32
func (*CodeRespData) GetErrTips ¶
func (x *CodeRespData) GetErrTips() string
func (*CodeRespData) GetKey ¶
func (x *CodeRespData) GetKey() string
func (*CodeRespData) GetOpenid ¶
func (x *CodeRespData) GetOpenid() string
func (*CodeRespData) GetSessionKey ¶
func (x *CodeRespData) GetSessionKey() string
func (*CodeRespData) GetUnionid ¶
func (x *CodeRespData) GetUnionid() string
func (*CodeRespData) ProtoMessage ¶
func (*CodeRespData) ProtoMessage()
func (*CodeRespData) ProtoReflect ¶
func (x *CodeRespData) ProtoReflect() protoreflect.Message
func (*CodeRespData) Reset ¶
func (x *CodeRespData) Reset()
func (*CodeRespData) String ¶
func (x *CodeRespData) String() string
type DouyinRpcServiceClient ¶
type DouyinRpcServiceClient interface { Code2Token(ctx context.Context, in *CodeReq, opts ...grpc.CallOption) (*CodeResp, error) // note: base Game 小游戏基础能力 OfficialAccountAccessToken(ctx context.Context, in *OaKeyReq, opts ...grpc.CallOption) (*OaAccessTokenResp, error) }
DouyinRpcServiceClient is the client API for DouyinRpcService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDouyinRpcServiceClient ¶
func NewDouyinRpcServiceClient(cc grpc.ClientConnInterface) DouyinRpcServiceClient
type DouyinRpcServiceServer ¶
type DouyinRpcServiceServer interface { Code2Token(context.Context, *CodeReq) (*CodeResp, error) // note: base Game 小游戏基础能力 OfficialAccountAccessToken(context.Context, *OaKeyReq) (*OaAccessTokenResp, error) // contains filtered or unexported methods }
DouyinRpcServiceServer is the server API for DouyinRpcService service. All implementations must embed UnimplementedDouyinRpcServiceServer for forward compatibility
type OaAccessTokenResp ¶
type OaAccessTokenResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *OaAccessTokenRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*OaAccessTokenResp) Descriptor
deprecated
func (*OaAccessTokenResp) Descriptor() ([]byte, []int)
Deprecated: Use OaAccessTokenResp.ProtoReflect.Descriptor instead.
func (*OaAccessTokenResp) GetCode ¶
func (x *OaAccessTokenResp) GetCode() int32
func (*OaAccessTokenResp) GetData ¶
func (x *OaAccessTokenResp) GetData() *OaAccessTokenRespData
func (*OaAccessTokenResp) GetMsg ¶
func (x *OaAccessTokenResp) GetMsg() string
func (*OaAccessTokenResp) GetPath ¶
func (x *OaAccessTokenResp) GetPath() string
func (*OaAccessTokenResp) GetRequestID ¶
func (x *OaAccessTokenResp) GetRequestID() string
func (*OaAccessTokenResp) ProtoMessage ¶
func (*OaAccessTokenResp) ProtoMessage()
func (*OaAccessTokenResp) ProtoReflect ¶
func (x *OaAccessTokenResp) ProtoReflect() protoreflect.Message
func (*OaAccessTokenResp) Reset ¶
func (x *OaAccessTokenResp) Reset()
func (*OaAccessTokenResp) String ¶
func (x *OaAccessTokenResp) String() string
type OaAccessTokenRespData ¶
type OaAccessTokenRespData struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` ExpiresIn int64 `protobuf:"varint,2,opt,name=expiresIn,proto3" json:"expiresIn,omitempty"` ErrNo int32 `protobuf:"varint,3,opt,name=errNo,proto3" json:"errNo,omitempty"` ErrTips string `protobuf:"bytes,4,opt,name=errTips,proto3" json:"errTips,omitempty"` // contains filtered or unexported fields }
func (*OaAccessTokenRespData) Descriptor
deprecated
func (*OaAccessTokenRespData) Descriptor() ([]byte, []int)
Deprecated: Use OaAccessTokenRespData.ProtoReflect.Descriptor instead.
func (*OaAccessTokenRespData) GetAccessToken ¶
func (x *OaAccessTokenRespData) GetAccessToken() string
func (*OaAccessTokenRespData) GetErrNo ¶
func (x *OaAccessTokenRespData) GetErrNo() int32
func (*OaAccessTokenRespData) GetErrTips ¶
func (x *OaAccessTokenRespData) GetErrTips() string
func (*OaAccessTokenRespData) GetExpiresIn ¶
func (x *OaAccessTokenRespData) GetExpiresIn() int64
func (*OaAccessTokenRespData) ProtoMessage ¶
func (*OaAccessTokenRespData) ProtoMessage()
func (*OaAccessTokenRespData) ProtoReflect ¶
func (x *OaAccessTokenRespData) ProtoReflect() protoreflect.Message
func (*OaAccessTokenRespData) Reset ¶
func (x *OaAccessTokenRespData) Reset()
func (*OaAccessTokenRespData) String ¶
func (x *OaAccessTokenRespData) String() string
type OaKeyReq ¶
type OaKeyReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*OaKeyReq) Descriptor
deprecated
func (*OaKeyReq) ProtoMessage ¶
func (*OaKeyReq) ProtoMessage()
func (*OaKeyReq) ProtoReflect ¶
func (x *OaKeyReq) ProtoReflect() protoreflect.Message
type UnimplementedDouyinRpcServiceServer ¶
type UnimplementedDouyinRpcServiceServer struct { }
UnimplementedDouyinRpcServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDouyinRpcServiceServer) Code2Token ¶
func (UnimplementedDouyinRpcServiceServer) OfficialAccountAccessToken ¶
func (UnimplementedDouyinRpcServiceServer) OfficialAccountAccessToken(context.Context, *OaKeyReq) (*OaAccessTokenResp, error)
type UnsafeDouyinRpcServiceServer ¶
type UnsafeDouyinRpcServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDouyinRpcServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DouyinRpcServiceServer will result in compilation errors.