代码拉取完成,页面将自动刷新
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v3.21.12
// source: mcenter/apps/token/pb/rpc.proto
package token
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type IssueTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 用户名称
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
// 密码
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
}
func (x *IssueTokenRequest) Reset() {
*x = IssueTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mcenter_apps_token_pb_rpc_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IssueTokenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IssueTokenRequest) ProtoMessage() {}
func (x *IssueTokenRequest) ProtoReflect() protoreflect.Message {
mi := &file_mcenter_apps_token_pb_rpc_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IssueTokenRequest.ProtoReflect.Descriptor instead.
func (*IssueTokenRequest) Descriptor() ([]byte, []int) {
return file_mcenter_apps_token_pb_rpc_proto_rawDescGZIP(), []int{0}
}
func (x *IssueTokenRequest) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *IssueTokenRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
type RevolkTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 需要被撤销的Token
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
// 使用Refresh Token做撤销验证
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
}
func (x *RevolkTokenRequest) Reset() {
*x = RevolkTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mcenter_apps_token_pb_rpc_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RevolkTokenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RevolkTokenRequest) ProtoMessage() {}
func (x *RevolkTokenRequest) ProtoReflect() protoreflect.Message {
mi := &file_mcenter_apps_token_pb_rpc_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RevolkTokenRequest.ProtoReflect.Descriptor instead.
func (*RevolkTokenRequest) Descriptor() ([]byte, []int) {
return file_mcenter_apps_token_pb_rpc_proto_rawDescGZIP(), []int{1}
}
func (x *RevolkTokenRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *RevolkTokenRequest) GetRefreshToken() string {
if x != nil {
return x.RefreshToken
}
return ""
}
type ValidateTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 需要被撤销的Token
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
}
func (x *ValidateTokenRequest) Reset() {
*x = ValidateTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mcenter_apps_token_pb_rpc_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ValidateTokenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ValidateTokenRequest) ProtoMessage() {}
func (x *ValidateTokenRequest) ProtoReflect() protoreflect.Message {
mi := &file_mcenter_apps_token_pb_rpc_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ValidateTokenRequest.ProtoReflect.Descriptor instead.
func (*ValidateTokenRequest) Descriptor() ([]byte, []int) {
return file_mcenter_apps_token_pb_rpc_proto_rawDescGZIP(), []int{2}
}
func (x *ValidateTokenRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
type DescribeTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 需要被撤销的Token
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
}
func (x *DescribeTokenRequest) Reset() {
*x = DescribeTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mcenter_apps_token_pb_rpc_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DescribeTokenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DescribeTokenRequest) ProtoMessage() {}
func (x *DescribeTokenRequest) ProtoReflect() protoreflect.Message {
mi := &file_mcenter_apps_token_pb_rpc_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DescribeTokenRequest.ProtoReflect.Descriptor instead.
func (*DescribeTokenRequest) Descriptor() ([]byte, []int) {
return file_mcenter_apps_token_pb_rpc_proto_rawDescGZIP(), []int{3}
}
func (x *DescribeTokenRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
var File_mcenter_apps_token_pb_rpc_proto protoreflect.FileDescriptor
var file_mcenter_apps_token_pb_rpc_proto_rawDesc = []byte{
0x0a, 0x1f, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x18, 0x67, 0x6f, 0x31, 0x31, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x5f, 0x6d, 0x69, 0x6e, 0x69, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x21, 0x6d, 0x63, 0x65,
0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f,
0x70, 0x62, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b,
0x0a, 0x11, 0x49, 0x73, 0x73, 0x75, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12,
0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x5c, 0x0a, 0x12, 0x52,
0x65, 0x76, 0x6f, 0x6c, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66,
0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x39, 0x0a, 0x14, 0x56, 0x61, 0x6c,
0x69, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x39, 0x0a, 0x14, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c,
0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32,
0xa4, 0x02, 0x0a, 0x03, 0x52, 0x70, 0x63, 0x12, 0x5a, 0x0a, 0x0a, 0x49, 0x73, 0x73, 0x75, 0x65,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x31, 0x31, 0x2e, 0x64, 0x65, 0x76,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x69, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6f, 0x31, 0x31, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x69, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54, 0x6f,
0x6b, 0x65, 0x6e, 0x12, 0x60, 0x0a, 0x0d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x31, 0x31, 0x2e, 0x64, 0x65, 0x76, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x69, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e,
0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6f, 0x31, 0x31, 0x2e, 0x64, 0x65, 0x76, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x69, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x5f, 0x0a, 0x0c, 0x44, 0x65, 0x73, 0x72, 0x69, 0x62, 0x65,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x31, 0x31, 0x2e, 0x64, 0x65, 0x76,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x69, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6f, 0x31, 0x31, 0x2e, 0x64, 0x65, 0x76,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x69, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x65, 0x65, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2f, 0x67, 0x6f,
0x31, 0x31, 0x2f, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x6d, 0x69, 0x6e, 0x69,
0x2f, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x74, 0x6f,
0x6b, 0x65, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_mcenter_apps_token_pb_rpc_proto_rawDescOnce sync.Once
file_mcenter_apps_token_pb_rpc_proto_rawDescData = file_mcenter_apps_token_pb_rpc_proto_rawDesc
)
func file_mcenter_apps_token_pb_rpc_proto_rawDescGZIP() []byte {
file_mcenter_apps_token_pb_rpc_proto_rawDescOnce.Do(func() {
file_mcenter_apps_token_pb_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_mcenter_apps_token_pb_rpc_proto_rawDescData)
})
return file_mcenter_apps_token_pb_rpc_proto_rawDescData
}
var file_mcenter_apps_token_pb_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_mcenter_apps_token_pb_rpc_proto_goTypes = []interface{}{
(*IssueTokenRequest)(nil), // 0: go11.devcloud_mini.token.IssueTokenRequest
(*RevolkTokenRequest)(nil), // 1: go11.devcloud_mini.token.RevolkTokenRequest
(*ValidateTokenRequest)(nil), // 2: go11.devcloud_mini.token.ValidateTokenRequest
(*DescribeTokenRequest)(nil), // 3: go11.devcloud_mini.token.DescribeTokenRequest
(*Token)(nil), // 4: go11.devcloud_mini.token.Token
}
var file_mcenter_apps_token_pb_rpc_proto_depIdxs = []int32{
0, // 0: go11.devcloud_mini.token.Rpc.IssueToken:input_type -> go11.devcloud_mini.token.IssueTokenRequest
2, // 1: go11.devcloud_mini.token.Rpc.ValidateToken:input_type -> go11.devcloud_mini.token.ValidateTokenRequest
3, // 2: go11.devcloud_mini.token.Rpc.DesribeToken:input_type -> go11.devcloud_mini.token.DescribeTokenRequest
4, // 3: go11.devcloud_mini.token.Rpc.IssueToken:output_type -> go11.devcloud_mini.token.Token
4, // 4: go11.devcloud_mini.token.Rpc.ValidateToken:output_type -> go11.devcloud_mini.token.Token
4, // 5: go11.devcloud_mini.token.Rpc.DesribeToken:output_type -> go11.devcloud_mini.token.Token
3, // [3:6] is the sub-list for method output_type
0, // [0:3] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_mcenter_apps_token_pb_rpc_proto_init() }
func file_mcenter_apps_token_pb_rpc_proto_init() {
if File_mcenter_apps_token_pb_rpc_proto != nil {
return
}
file_mcenter_apps_token_pb_model_proto_init()
if !protoimpl.UnsafeEnabled {
file_mcenter_apps_token_pb_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IssueTokenRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_mcenter_apps_token_pb_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RevolkTokenRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_mcenter_apps_token_pb_rpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ValidateTokenRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_mcenter_apps_token_pb_rpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DescribeTokenRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_mcenter_apps_token_pb_rpc_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_mcenter_apps_token_pb_rpc_proto_goTypes,
DependencyIndexes: file_mcenter_apps_token_pb_rpc_proto_depIdxs,
MessageInfos: file_mcenter_apps_token_pb_rpc_proto_msgTypes,
}.Build()
File_mcenter_apps_token_pb_rpc_proto = out.File
file_mcenter_apps_token_pb_rpc_proto_rawDesc = nil
file_mcenter_apps_token_pb_rpc_proto_goTypes = nil
file_mcenter_apps_token_pb_rpc_proto_depIdxs = nil
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。