Documentation
¶
Index ¶
- Variables
- func RegisterApiAuthServiceServer(s *grpc.Server, srv ApiAuthServiceServer)
- func RegisterAppManagerServer(s *grpc.Server, srv AppManagerServer)
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type ApiAuthReq
- func (*ApiAuthReq) Descriptor() ([]byte, []int)deprecated
- func (x *ApiAuthReq) GetNameSpace() string
- func (x *ApiAuthReq) GetOperationUrl() string
- func (x *ApiAuthReq) GetToken() string
- func (*ApiAuthReq) ProtoMessage()
- func (x *ApiAuthReq) ProtoReflect() protoreflect.Message
- func (x *ApiAuthReq) Reset()
- func (x *ApiAuthReq) String() string
- type ApiAuthRes
- type ApiAuthRes_Code
- func (ApiAuthRes_Code) Descriptor() protoreflect.EnumDescriptor
- func (x ApiAuthRes_Code) Enum() *ApiAuthRes_Code
- func (ApiAuthRes_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x ApiAuthRes_Code) Number() protoreflect.EnumNumber
- func (x ApiAuthRes_Code) String() string
- func (ApiAuthRes_Code) Type() protoreflect.EnumType
- type ApiAuthServiceClient
- type ApiAuthServiceServer
- type AppManagerClient
- type AppManagerServer
- type AppReq
- func (*AppReq) Descriptor() ([]byte, []int)deprecated
- func (x *AppReq) GetAppId() uint32
- func (x *AppReq) GetNameSpace() string
- func (x *AppReq) GetOperations() []*AppReq_Operation
- func (x *AppReq) GetTraffics() []*AppReq_AppTraffic
- func (*AppReq) ProtoMessage()
- func (x *AppReq) ProtoReflect() protoreflect.Message
- func (x *AppReq) Reset()
- func (x *AppReq) String() string
- type AppReq_AppTraffic
- func (*AppReq_AppTraffic) Descriptor() ([]byte, []int)deprecated
- func (x *AppReq_AppTraffic) GetSeq() uint32
- func (x *AppReq_AppTraffic) GetUnit() string
- func (x *AppReq_AppTraffic) GetValue() uint32
- func (*AppReq_AppTraffic) ProtoMessage()
- func (x *AppReq_AppTraffic) ProtoReflect() protoreflect.Message
- func (x *AppReq_AppTraffic) Reset()
- func (x *AppReq_AppTraffic) String() string
- type AppReq_Operation
- func (*AppReq_Operation) Descriptor() ([]byte, []int)deprecated
- func (x *AppReq_Operation) GetEndPoint() string
- func (x *AppReq_Operation) GetOperationId() uint32
- func (*AppReq_Operation) ProtoMessage()
- func (x *AppReq_Operation) ProtoReflect() protoreflect.Message
- func (x *AppReq_Operation) Reset()
- func (x *AppReq_Operation) String() string
- type AppRes
- type AppRes_Status
- func (AppRes_Status) Descriptor() protoreflect.EnumDescriptor
- func (x AppRes_Status) Enum() *AppRes_Status
- func (AppRes_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x AppRes_Status) Number() protoreflect.EnumNumber
- func (x AppRes_Status) String() string
- func (AppRes_Status) Type() protoreflect.EnumType
- type AuthRes
- func (*AuthRes) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRes) GetCode() AuthResult
- func (x *AuthRes) GetExpiresIn() *timestamp.Timestamp
- func (x *AuthRes) GetJwt() string
- func (x *AuthRes) GetMsg() string
- func (x *AuthRes) GetRefreshToken() string
- func (x *AuthRes) GetRefreshTokenExpiresIn() *timestamp.Timestamp
- func (*AuthRes) ProtoMessage()
- func (x *AuthRes) ProtoReflect() protoreflect.Message
- func (x *AuthRes) Reset()
- func (x *AuthRes) String() string
- type AuthResult
- type AuthServiceClient
- type AuthServiceServer
- type JwtReq
- type LoginReq
- type RefreshTokenReq
- type UnimplementedApiAuthServiceServer
- type UnimplementedAppManagerServer
- type UnimplementedAuthServiceServer
- type UnimplementedUserServiceServer
- type UserReq
- func (*UserReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserReq) GetEmail() string
- func (x *UserReq) GetLoginId() string
- func (x *UserReq) GetName() string
- func (x *UserReq) GetPassword() string
- func (x *UserReq) GetPasswordConfirmation() string
- func (*UserReq) ProtoMessage()
- func (x *UserReq) ProtoReflect() protoreflect.Message
- func (x *UserReq) Reset()
- func (x *UserReq) String() string
- type UserRes
- func (*UserRes) Descriptor() ([]byte, []int)deprecated
- func (x *UserRes) GetCode() UserRes_Code
- func (x *UserRes) GetEmail() string
- func (x *UserRes) GetId() uint32
- func (x *UserRes) GetLoginId() string
- func (x *UserRes) GetName() string
- func (*UserRes) ProtoMessage()
- func (x *UserRes) ProtoReflect() protoreflect.Message
- func (x *UserRes) Reset()
- func (x *UserRes) String() string
- type UserRes_Code
- func (UserRes_Code) Descriptor() protoreflect.EnumDescriptor
- func (x UserRes_Code) Enum() *UserRes_Code
- func (UserRes_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserRes_Code) Number() protoreflect.EnumNumber
- func (x UserRes_Code) String() string
- func (UserRes_Code) Type() protoreflect.EnumType
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ApiAuthRes_Code_name = map[int32]string{ 0: "VALID", -1: "INTERNAL_EXCEPTION", -2: "PARAMETER_EXCEPTION", -3: "UNREGISTERED_SERVICE", -4: "UNREGISTERED_TOKEN", -9: "TERMINATED_SERVICE", -10: "LIMIT_EXCEEDED", -401: "UNAUTHORIZED", -999: "UNKNOWN", } ApiAuthRes_Code_value = map[string]int32{ "VALID": 0, "INTERNAL_EXCEPTION": -1, "PARAMETER_EXCEPTION": -2, "UNREGISTERED_SERVICE": -3, "UNREGISTERED_TOKEN": -4, "TERMINATED_SERVICE": -9, "LIMIT_EXCEEDED": -10, "UNAUTHORIZED": -401, "UNKNOWN": -999, } )
Enum value maps for ApiAuthRes_Code.
var ( AppRes_Status_name = map[int32]string{ 0: "OK", 1: "ERROR", } AppRes_Status_value = map[string]int32{ "OK": 0, "ERROR": 1, } )
Enum value maps for AppRes_Status.
var ( AuthResult_name = map[int32]string{ 0: "VALID", -1: "NOT_REGISTERED", -2: "INVALID_PASSWORD", -3: "WITHDRAWAL_USER", -4: "INVALID_TOKEN", -9: "INTERNAL_EXCEPTION", } AuthResult_value = map[string]int32{ "VALID": 0, "NOT_REGISTERED": -1, "INVALID_PASSWORD": -2, "WITHDRAWAL_USER": -3, "INVALID_TOKEN": -4, "INTERNAL_EXCEPTION": -9, } )
Enum value maps for AuthResult.
var ( UserRes_Code_name = map[int32]string{ 0: "VALID", -1: "DUPLICATE_LOGIN_ID", -2: "PASSWORD_NOT_MATCHED", -3: "DUPLICATE_EMAIL", -99: "INTERNAL_EXCEPTION", } UserRes_Code_value = map[string]int32{ "VALID": 0, "DUPLICATE_LOGIN_ID": -1, "PASSWORD_NOT_MATCHED": -2, "DUPLICATE_EMAIL": -3, "INTERNAL_EXCEPTION": -99, } )
Enum value maps for UserRes_Code.
Functions ¶
func RegisterApiAuthServiceServer ¶
func RegisterApiAuthServiceServer(s *grpc.Server, srv ApiAuthServiceServer)
func RegisterAppManagerServer ¶
func RegisterAppManagerServer(s *grpc.Server, srv AppManagerServer)
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type ApiAuthReq ¶
type ApiAuthReq struct { NameSpace string `protobuf:"bytes,1,opt,name=name_space,json=nameSpace,proto3" json:"name_space,omitempty"` OperationUrl string `protobuf:"bytes,2,opt,name=operation_url,json=operationUrl,proto3" json:"operation_url,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*ApiAuthReq) Descriptor
deprecated
func (*ApiAuthReq) Descriptor() ([]byte, []int)
Deprecated: Use ApiAuthReq.ProtoReflect.Descriptor instead.
func (*ApiAuthReq) GetNameSpace ¶
func (x *ApiAuthReq) GetNameSpace() string
func (*ApiAuthReq) GetOperationUrl ¶
func (x *ApiAuthReq) GetOperationUrl() string
func (*ApiAuthReq) GetToken ¶
func (x *ApiAuthReq) GetToken() string
func (*ApiAuthReq) ProtoMessage ¶
func (*ApiAuthReq) ProtoMessage()
func (*ApiAuthReq) ProtoReflect ¶
func (x *ApiAuthReq) ProtoReflect() protoreflect.Message
func (*ApiAuthReq) Reset ¶
func (x *ApiAuthReq) Reset()
func (*ApiAuthReq) String ¶
func (x *ApiAuthReq) String() string
type ApiAuthRes ¶
type ApiAuthRes struct { Code ApiAuthRes_Code `protobuf:"varint,1,opt,name=code,proto3,enum=grpc_author.ApiAuthRes_Code" json:"code,omitempty"` // contains filtered or unexported fields }
func (*ApiAuthRes) Descriptor
deprecated
func (*ApiAuthRes) Descriptor() ([]byte, []int)
Deprecated: Use ApiAuthRes.ProtoReflect.Descriptor instead.
func (*ApiAuthRes) GetCode ¶
func (x *ApiAuthRes) GetCode() ApiAuthRes_Code
func (*ApiAuthRes) ProtoMessage ¶
func (*ApiAuthRes) ProtoMessage()
func (*ApiAuthRes) ProtoReflect ¶
func (x *ApiAuthRes) ProtoReflect() protoreflect.Message
func (*ApiAuthRes) Reset ¶
func (x *ApiAuthRes) Reset()
func (*ApiAuthRes) String ¶
func (x *ApiAuthRes) String() string
type ApiAuthRes_Code ¶
type ApiAuthRes_Code int32
const ( ApiAuthRes_VALID ApiAuthRes_Code = 0 ApiAuthRes_INTERNAL_EXCEPTION ApiAuthRes_Code = -1 ApiAuthRes_PARAMETER_EXCEPTION ApiAuthRes_Code = -2 ApiAuthRes_UNREGISTERED_SERVICE ApiAuthRes_Code = -3 ApiAuthRes_UNREGISTERED_TOKEN ApiAuthRes_Code = -4 ApiAuthRes_TERMINATED_SERVICE ApiAuthRes_Code = -9 ApiAuthRes_LIMIT_EXCEEDED ApiAuthRes_Code = -10 ApiAuthRes_UNAUTHORIZED ApiAuthRes_Code = -401 ApiAuthRes_UNKNOWN ApiAuthRes_Code = -999 )
func (ApiAuthRes_Code) Descriptor ¶
func (ApiAuthRes_Code) Descriptor() protoreflect.EnumDescriptor
func (ApiAuthRes_Code) Enum ¶
func (x ApiAuthRes_Code) Enum() *ApiAuthRes_Code
func (ApiAuthRes_Code) EnumDescriptor
deprecated
func (ApiAuthRes_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use ApiAuthRes_Code.Descriptor instead.
func (ApiAuthRes_Code) Number ¶
func (x ApiAuthRes_Code) Number() protoreflect.EnumNumber
func (ApiAuthRes_Code) String ¶
func (x ApiAuthRes_Code) String() string
func (ApiAuthRes_Code) Type ¶
func (ApiAuthRes_Code) Type() protoreflect.EnumType
type ApiAuthServiceClient ¶
type ApiAuthServiceClient interface {
Auth(ctx context.Context, in *ApiAuthReq, opts ...grpc.CallOption) (*ApiAuthRes, error)
}
ApiAuthServiceClient is the client API for ApiAuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewApiAuthServiceClient ¶
func NewApiAuthServiceClient(cc grpc.ClientConnInterface) ApiAuthServiceClient
type ApiAuthServiceServer ¶
type ApiAuthServiceServer interface {
Auth(context.Context, *ApiAuthReq) (*ApiAuthRes, error)
}
ApiAuthServiceServer is the server API for ApiAuthService service.
type AppManagerClient ¶
type AppManagerClient interface { Create(ctx context.Context, in *AppReq, opts ...grpc.CallOption) (*AppRes, error) Update(ctx context.Context, in *AppReq, opts ...grpc.CallOption) (*AppRes, error) Destroy(ctx context.Context, in *AppReq, opts ...grpc.CallOption) (*AppRes, error) }
AppManagerClient is the client API for AppManager service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAppManagerClient ¶
func NewAppManagerClient(cc grpc.ClientConnInterface) AppManagerClient
type AppManagerServer ¶
type AppManagerServer interface { Create(context.Context, *AppReq) (*AppRes, error) Update(context.Context, *AppReq) (*AppRes, error) Destroy(context.Context, *AppReq) (*AppRes, error) }
AppManagerServer is the server API for AppManager service.
type AppReq ¶
type AppReq struct { AppId uint32 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` NameSpace string `protobuf:"bytes,1,opt,name=name_space,json=nameSpace,proto3" json:"name_space,omitempty"` Traffics []*AppReq_AppTraffic `protobuf:"bytes,3,rep,name=traffics,proto3" json:"traffics,omitempty"` Operations []*AppReq_Operation `protobuf:"bytes,4,rep,name=operations,proto3" json:"operations,omitempty"` // contains filtered or unexported fields }
func (*AppReq) Descriptor
deprecated
func (*AppReq) GetNameSpace ¶
func (*AppReq) GetOperations ¶
func (x *AppReq) GetOperations() []*AppReq_Operation
func (*AppReq) GetTraffics ¶
func (x *AppReq) GetTraffics() []*AppReq_AppTraffic
func (*AppReq) ProtoMessage ¶
func (*AppReq) ProtoMessage()
func (*AppReq) ProtoReflect ¶
func (x *AppReq) ProtoReflect() protoreflect.Message
type AppReq_AppTraffic ¶
type AppReq_AppTraffic struct { Unit string `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"` Value uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` Seq uint32 `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"` // contains filtered or unexported fields }
func (*AppReq_AppTraffic) Descriptor
deprecated
func (*AppReq_AppTraffic) Descriptor() ([]byte, []int)
Deprecated: Use AppReq_AppTraffic.ProtoReflect.Descriptor instead.
func (*AppReq_AppTraffic) GetSeq ¶
func (x *AppReq_AppTraffic) GetSeq() uint32
func (*AppReq_AppTraffic) GetUnit ¶
func (x *AppReq_AppTraffic) GetUnit() string
func (*AppReq_AppTraffic) GetValue ¶
func (x *AppReq_AppTraffic) GetValue() uint32
func (*AppReq_AppTraffic) ProtoMessage ¶
func (*AppReq_AppTraffic) ProtoMessage()
func (*AppReq_AppTraffic) ProtoReflect ¶
func (x *AppReq_AppTraffic) ProtoReflect() protoreflect.Message
func (*AppReq_AppTraffic) Reset ¶
func (x *AppReq_AppTraffic) Reset()
func (*AppReq_AppTraffic) String ¶
func (x *AppReq_AppTraffic) String() string
type AppReq_Operation ¶
type AppReq_Operation struct { EndPoint string `protobuf:"bytes,1,opt,name=end_point,json=endPoint,proto3" json:"end_point,omitempty"` OperationId uint32 `protobuf:"varint,2,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"` // contains filtered or unexported fields }
func (*AppReq_Operation) Descriptor
deprecated
func (*AppReq_Operation) Descriptor() ([]byte, []int)
Deprecated: Use AppReq_Operation.ProtoReflect.Descriptor instead.
func (*AppReq_Operation) GetEndPoint ¶
func (x *AppReq_Operation) GetEndPoint() string
func (*AppReq_Operation) GetOperationId ¶
func (x *AppReq_Operation) GetOperationId() uint32
func (*AppReq_Operation) ProtoMessage ¶
func (*AppReq_Operation) ProtoMessage()
func (*AppReq_Operation) ProtoReflect ¶
func (x *AppReq_Operation) ProtoReflect() protoreflect.Message
func (*AppReq_Operation) Reset ¶
func (x *AppReq_Operation) Reset()
func (*AppReq_Operation) String ¶
func (x *AppReq_Operation) String() string
type AppRes ¶
type AppRes struct { Status AppRes_Status `protobuf:"varint,1,opt,name=status,proto3,enum=grpc_author.AppRes_Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AppRes) Descriptor
deprecated
func (*AppRes) GetStatus ¶
func (x *AppRes) GetStatus() AppRes_Status
func (*AppRes) ProtoMessage ¶
func (*AppRes) ProtoMessage()
func (*AppRes) ProtoReflect ¶
func (x *AppRes) ProtoReflect() protoreflect.Message
type AppRes_Status ¶
type AppRes_Status int32
const ( AppRes_OK AppRes_Status = 0 AppRes_ERROR AppRes_Status = 1 )
func (AppRes_Status) Descriptor ¶
func (AppRes_Status) Descriptor() protoreflect.EnumDescriptor
func (AppRes_Status) Enum ¶
func (x AppRes_Status) Enum() *AppRes_Status
func (AppRes_Status) EnumDescriptor
deprecated
func (AppRes_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use AppRes_Status.Descriptor instead.
func (AppRes_Status) Number ¶
func (x AppRes_Status) Number() protoreflect.EnumNumber
func (AppRes_Status) String ¶
func (x AppRes_Status) String() string
func (AppRes_Status) Type ¶
func (AppRes_Status) Type() protoreflect.EnumType
type AuthRes ¶
type AuthRes struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` ExpiresIn *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` RefreshTokenExpiresIn *timestamp.Timestamp `` /* 128-byte string literal not displayed */ Code AuthResult `protobuf:"varint,5,opt,name=code,proto3,enum=grpc_author.AuthResult" json:"code,omitempty"` Msg string `protobuf:"bytes,6,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*AuthRes) Descriptor
deprecated
func (*AuthRes) GetCode ¶
func (x *AuthRes) GetCode() AuthResult
func (*AuthRes) GetExpiresIn ¶
func (*AuthRes) GetRefreshToken ¶
func (*AuthRes) GetRefreshTokenExpiresIn ¶
func (*AuthRes) ProtoMessage ¶
func (*AuthRes) ProtoMessage()
func (*AuthRes) ProtoReflect ¶
func (x *AuthRes) ProtoReflect() protoreflect.Message
type AuthResult ¶
type AuthResult int32
const ( AuthResult_VALID AuthResult = 0 AuthResult_NOT_REGISTERED AuthResult = -1 AuthResult_INVALID_PASSWORD AuthResult = -2 AuthResult_WITHDRAWAL_USER AuthResult = -3 AuthResult_INVALID_TOKEN AuthResult = -4 AuthResult_INTERNAL_EXCEPTION AuthResult = -9 )
func (AuthResult) Descriptor ¶
func (AuthResult) Descriptor() protoreflect.EnumDescriptor
func (AuthResult) Enum ¶
func (x AuthResult) Enum() *AuthResult
func (AuthResult) EnumDescriptor
deprecated
func (AuthResult) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthResult.Descriptor instead.
func (AuthResult) Number ¶
func (x AuthResult) Number() protoreflect.EnumNumber
func (AuthResult) String ¶
func (x AuthResult) String() string
func (AuthResult) Type ¶
func (AuthResult) Type() protoreflect.EnumType
type AuthServiceClient ¶
type AuthServiceClient interface { Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*AuthRes, error) Auth(ctx context.Context, in *JwtReq, opts ...grpc.CallOption) (*AuthRes, error) Refresh(ctx context.Context, in *RefreshTokenReq, opts ...grpc.CallOption) (*AuthRes, error) }
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Login(context.Context, *LoginReq) (*AuthRes, error) Auth(context.Context, *JwtReq) (*AuthRes, error) Refresh(context.Context, *RefreshTokenReq) (*AuthRes, error) }
AuthServiceServer is the server API for AuthService service.
type JwtReq ¶
type JwtReq struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` // contains filtered or unexported fields }
func (*JwtReq) Descriptor
deprecated
func (*JwtReq) ProtoMessage ¶
func (*JwtReq) ProtoMessage()
func (*JwtReq) ProtoReflect ¶
func (x *JwtReq) ProtoReflect() protoreflect.Message
type LoginReq ¶
type LoginReq struct { LoginId string `protobuf:"bytes,1,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetLoginId ¶
func (*LoginReq) GetPassword ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
type RefreshTokenReq ¶
type RefreshTokenReq struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenReq) Descriptor
deprecated
func (*RefreshTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenReq.ProtoReflect.Descriptor instead.
func (*RefreshTokenReq) GetRefreshToken ¶
func (x *RefreshTokenReq) GetRefreshToken() string
func (*RefreshTokenReq) ProtoMessage ¶
func (*RefreshTokenReq) ProtoMessage()
func (*RefreshTokenReq) ProtoReflect ¶
func (x *RefreshTokenReq) ProtoReflect() protoreflect.Message
func (*RefreshTokenReq) Reset ¶
func (x *RefreshTokenReq) Reset()
func (*RefreshTokenReq) String ¶
func (x *RefreshTokenReq) String() string
type UnimplementedApiAuthServiceServer ¶
type UnimplementedApiAuthServiceServer struct { }
UnimplementedApiAuthServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedApiAuthServiceServer) Auth ¶
func (*UnimplementedApiAuthServiceServer) Auth(context.Context, *ApiAuthReq) (*ApiAuthRes, error)
type UnimplementedAppManagerServer ¶
type UnimplementedAppManagerServer struct { }
UnimplementedAppManagerServer can be embedded to have forward compatible implementations.
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServiceServer) Refresh ¶
func (*UnimplementedAuthServiceServer) Refresh(context.Context, *RefreshTokenReq) (*AuthRes, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
type UserReq ¶
type UserReq struct { LoginId string `protobuf:"bytes,1,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` PasswordConfirmation string `protobuf:"bytes,3,opt,name=password_confirmation,json=passwordConfirmation,proto3" json:"password_confirmation,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UserReq) Descriptor
deprecated
func (*UserReq) GetLoginId ¶
func (*UserReq) GetPassword ¶
func (*UserReq) GetPasswordConfirmation ¶
func (*UserReq) ProtoMessage ¶
func (*UserReq) ProtoMessage()
func (*UserReq) ProtoReflect ¶
func (x *UserReq) ProtoReflect() protoreflect.Message
type UserRes ¶
type UserRes struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` LoginId string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Code UserRes_Code `protobuf:"varint,5,opt,name=code,proto3,enum=grpc_author.UserRes_Code" json:"code,omitempty"` // contains filtered or unexported fields }
func (*UserRes) Descriptor
deprecated
func (*UserRes) GetCode ¶
func (x *UserRes) GetCode() UserRes_Code
func (*UserRes) GetLoginId ¶
func (*UserRes) ProtoMessage ¶
func (*UserRes) ProtoMessage()
func (*UserRes) ProtoReflect ¶
func (x *UserRes) ProtoReflect() protoreflect.Message
type UserRes_Code ¶
type UserRes_Code int32
const ( UserRes_VALID UserRes_Code = 0 UserRes_DUPLICATE_LOGIN_ID UserRes_Code = -1 UserRes_PASSWORD_NOT_MATCHED UserRes_Code = -2 UserRes_DUPLICATE_EMAIL UserRes_Code = -3 UserRes_INTERNAL_EXCEPTION UserRes_Code = -99 )
func (UserRes_Code) Descriptor ¶
func (UserRes_Code) Descriptor() protoreflect.EnumDescriptor
func (UserRes_Code) Enum ¶
func (x UserRes_Code) Enum() *UserRes_Code
func (UserRes_Code) EnumDescriptor
deprecated
func (UserRes_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserRes_Code.Descriptor instead.
func (UserRes_Code) Number ¶
func (x UserRes_Code) Number() protoreflect.EnumNumber
func (UserRes_Code) String ¶
func (x UserRes_Code) String() string
func (UserRes_Code) Type ¶
func (UserRes_Code) Type() protoreflect.EnumType
type UserServiceClient ¶
type UserServiceClient interface {
Signup(ctx context.Context, in *UserReq, opts ...grpc.CallOption) (*UserRes, error)
}
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient