douyin

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DouyinRpcService_Code2Token_FullMethodName                 = "/douyin.DouyinRpcService/Code2Token"
	DouyinRpcService_OfficialAccountAccessToken_FullMethodName = "/douyin.DouyinRpcService/OfficialAccountAccessToken"
)

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use CodeReq.ProtoReflect.Descriptor instead.

func (*CodeReq) GetAnonymousCode

func (x *CodeReq) GetAnonymousCode() string

func (*CodeReq) GetCode

func (x *CodeReq) GetCode() string

func (*CodeReq) GetKey

func (x *CodeReq) GetKey() string

func (*CodeReq) ProtoMessage

func (*CodeReq) ProtoMessage()

func (*CodeReq) ProtoReflect

func (x *CodeReq) ProtoReflect() protoreflect.Message

func (*CodeReq) Reset

func (x *CodeReq) Reset()

func (*CodeReq) String

func (x *CodeReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CodeResp.ProtoReflect.Descriptor instead.

func (*CodeResp) GetCode

func (x *CodeResp) GetCode() int32

func (*CodeResp) GetData

func (x *CodeResp) GetData() *CodeRespData

func (*CodeResp) GetMsg

func (x *CodeResp) GetMsg() string

func (*CodeResp) GetPath

func (x *CodeResp) GetPath() string

func (*CodeResp) GetRequestID

func (x *CodeResp) GetRequestID() string

func (*CodeResp) ProtoMessage

func (*CodeResp) ProtoMessage()

func (*CodeResp) ProtoReflect

func (x *CodeResp) ProtoReflect() protoreflect.Message

func (*CodeResp) Reset

func (x *CodeResp) Reset()

func (*CodeResp) String

func (x *CodeResp) String() string

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.

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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use OaKeyReq.ProtoReflect.Descriptor instead.

func (*OaKeyReq) GetKey

func (x *OaKeyReq) GetKey() string

func (*OaKeyReq) ProtoMessage

func (*OaKeyReq) ProtoMessage()

func (*OaKeyReq) ProtoReflect

func (x *OaKeyReq) ProtoReflect() protoreflect.Message

func (*OaKeyReq) Reset

func (x *OaKeyReq) Reset()

func (*OaKeyReq) String

func (x *OaKeyReq) String() string

type UnimplementedDouyinRpcServiceServer

type UnimplementedDouyinRpcServiceServer struct {
}

UnimplementedDouyinRpcServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDouyinRpcServiceServer) Code2Token

func (UnimplementedDouyinRpcServiceServer) OfficialAccountAccessToken

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.

Jump to

Keyboard shortcuts

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