grpc_author

package
v0.0.0-...-257279a Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

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

View Source
var File_proto_author_api_auth_proto protoreflect.FileDescriptor
View Source
var File_proto_author_app_proto protoreflect.FileDescriptor
View Source
var File_proto_author_auth_proto protoreflect.FileDescriptor
View Source
var File_proto_author_user_proto protoreflect.FileDescriptor

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) 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 (ApiAuthRes_Code) String

func (x ApiAuthRes_Code) String() string

func (ApiAuthRes_Code) Type

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.

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

Deprecated: Use AppReq.ProtoReflect.Descriptor instead.

func (*AppReq) GetAppId

func (x *AppReq) GetAppId() uint32

func (*AppReq) GetNameSpace

func (x *AppReq) GetNameSpace() string

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

func (*AppReq) Reset

func (x *AppReq) Reset()

func (*AppReq) String

func (x *AppReq) String() string

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

Deprecated: Use AppRes.ProtoReflect.Descriptor instead.

func (*AppRes) GetStatus

func (x *AppRes) GetStatus() AppRes_Status

func (*AppRes) ProtoMessage

func (*AppRes) ProtoMessage()

func (*AppRes) ProtoReflect

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

func (*AppRes) Reset

func (x *AppRes) Reset()

func (*AppRes) String

func (x *AppRes) String() string

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) 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 (AppRes_Status) String

func (x AppRes_Status) String() string

func (AppRes_Status) Type

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

Deprecated: Use AuthRes.ProtoReflect.Descriptor instead.

func (*AuthRes) GetCode

func (x *AuthRes) GetCode() AuthResult

func (*AuthRes) GetExpiresIn

func (x *AuthRes) GetExpiresIn() *timestamp.Timestamp

func (*AuthRes) GetJwt

func (x *AuthRes) GetJwt() string

func (*AuthRes) GetMsg

func (x *AuthRes) GetMsg() string

func (*AuthRes) GetRefreshToken

func (x *AuthRes) GetRefreshToken() string

func (*AuthRes) GetRefreshTokenExpiresIn

func (x *AuthRes) GetRefreshTokenExpiresIn() *timestamp.Timestamp

func (*AuthRes) ProtoMessage

func (*AuthRes) ProtoMessage()

func (*AuthRes) ProtoReflect

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

func (*AuthRes) Reset

func (x *AuthRes) Reset()

func (*AuthRes) String

func (x *AuthRes) String() string

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

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.

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

Deprecated: Use JwtReq.ProtoReflect.Descriptor instead.

func (*JwtReq) GetJwt

func (x *JwtReq) GetJwt() string

func (*JwtReq) ProtoMessage

func (*JwtReq) ProtoMessage()

func (*JwtReq) ProtoReflect

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

func (*JwtReq) Reset

func (x *JwtReq) Reset()

func (*JwtReq) String

func (x *JwtReq) String() string

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

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) GetLoginId

func (x *LoginReq) GetLoginId() string

func (*LoginReq) GetPassword

func (x *LoginReq) GetPassword() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

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

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) String

func (x *LoginReq) String() string

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

type UnimplementedAppManagerServer

type UnimplementedAppManagerServer struct {
}

UnimplementedAppManagerServer can be embedded to have forward compatible implementations.

func (*UnimplementedAppManagerServer) Create

func (*UnimplementedAppManagerServer) Destroy

func (*UnimplementedAppManagerServer) Update

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServiceServer) Auth

func (*UnimplementedAuthServiceServer) Login

func (*UnimplementedAuthServiceServer) Refresh

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServiceServer) Signup

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

Deprecated: Use UserReq.ProtoReflect.Descriptor instead.

func (*UserReq) GetEmail

func (x *UserReq) GetEmail() string

func (*UserReq) GetLoginId

func (x *UserReq) GetLoginId() string

func (*UserReq) GetName

func (x *UserReq) GetName() string

func (*UserReq) GetPassword

func (x *UserReq) GetPassword() string

func (*UserReq) GetPasswordConfirmation

func (x *UserReq) GetPasswordConfirmation() string

func (*UserReq) ProtoMessage

func (*UserReq) ProtoMessage()

func (*UserReq) ProtoReflect

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

func (*UserReq) Reset

func (x *UserReq) Reset()

func (*UserReq) String

func (x *UserReq) String() string

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

Deprecated: Use UserRes.ProtoReflect.Descriptor instead.

func (*UserRes) GetCode

func (x *UserRes) GetCode() UserRes_Code

func (*UserRes) GetEmail

func (x *UserRes) GetEmail() string

func (*UserRes) GetId

func (x *UserRes) GetId() uint32

func (*UserRes) GetLoginId

func (x *UserRes) GetLoginId() string

func (*UserRes) GetName

func (x *UserRes) GetName() string

func (*UserRes) ProtoMessage

func (*UserRes) ProtoMessage()

func (*UserRes) ProtoReflect

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

func (*UserRes) Reset

func (x *UserRes) Reset()

func (*UserRes) String

func (x *UserRes) String() string

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) 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 (UserRes_Code) String

func (x UserRes_Code) String() string

func (UserRes_Code) Type

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.

type UserServiceServer

type UserServiceServer interface {
	Signup(context.Context, *UserReq) (*UserRes, error)
}

UserServiceServer is the server API for UserService service.

Jump to

Keyboard shortcuts

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