v1

package
v0.0.0-...-4da945e Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const OperationCenterAdminActivateUser = "/center.admin.v1.CenterAdmin/ActivateUser"
View Source
const OperationCenterAdminDeactivateUser = "/center.admin.v1.CenterAdmin/DeactivateUser"
View Source
const OperationCenterAdminGetUser = "/center.admin.v1.CenterAdmin/GetUser"
View Source
const OperationCenterAdminListUser = "/center.admin.v1.CenterAdmin/ListUser"
View Source
const OperationCenterAdminLogin = "/center.admin.v1.CenterAdmin/Login"
View Source
const OperationCenterAdminLogout = "/center.admin.v1.CenterAdmin/Logout"

Variables

View Source
var (
	CenterAdminErrorReason_name = map[int32]string{
		0: "UNKNOWN_ERROR",
		1: "LOGIN_FAILED",
		2: "USERNAME_CONFLICT",
		3: "REGISTER_FAILED",
	}
	CenterAdminErrorReason_value = map[string]int32{
		"UNKNOWN_ERROR":     0,
		"LOGIN_FAILED":      1,
		"USERNAME_CONFLICT": 2,
		"REGISTER_FAILED":   3,
	}
)

Enum value maps for CenterAdminErrorReason.

View Source
var CenterAdmin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "center.admin.v1.CenterAdmin",
	HandlerType: (*CenterAdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _CenterAdmin_Login_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _CenterAdmin_Logout_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _CenterAdmin_GetUser_Handler,
		},
		{
			MethodName: "ListUser",
			Handler:    _CenterAdmin_ListUser_Handler,
		},
		{
			MethodName: "DeactivateUser",
			Handler:    _CenterAdmin_DeactivateUser_Handler,
		},
		{
			MethodName: "ActivateUser",
			Handler:    _CenterAdmin_ActivateUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/center_admin.proto",
}

CenterAdmin_ServiceDesc is the grpc.ServiceDesc for CenterAdmin 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_v1_center_admin_error_proto protoreflect.FileDescriptor
View Source
var File_v1_center_admin_proto protoreflect.FileDescriptor

Functions

func ErrorLoginFailed

func ErrorLoginFailed(format string, args ...interface{}) *errors.Error

func ErrorRegisterFailed

func ErrorRegisterFailed(format string, args ...interface{}) *errors.Error

func ErrorUnknownError

func ErrorUnknownError(format string, args ...interface{}) *errors.Error

func ErrorUsernameConflict

func ErrorUsernameConflict(format string, args ...interface{}) *errors.Error

func IsLoginFailed

func IsLoginFailed(err error) bool

func IsRegisterFailed

func IsRegisterFailed(err error) bool

func IsUnknownError

func IsUnknownError(err error) bool

func IsUsernameConflict

func IsUsernameConflict(err error) bool

func RegisterCenterAdminHTTPServer

func RegisterCenterAdminHTTPServer(s *http.Server, srv CenterAdminHTTPServer)

func RegisterCenterAdminServer

func RegisterCenterAdminServer(s grpc.ServiceRegistrar, srv CenterAdminServer)

Types

type CenterAdminClient

type CenterAdminClient interface {
	Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginReply, error)
	Logout(ctx context.Context, in *LogoutReq, opts ...grpc.CallOption) (*LogoutReply, error)
	GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserReply, error)
	ListUser(ctx context.Context, in *ListUserReq, opts ...grpc.CallOption) (*ListUserReply, error)
	DeactivateUser(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*UserOkReply, error)
	ActivateUser(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*UserOkReply, error)
}

CenterAdminClient is the client API for CenterAdmin 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 CenterAdminErrorReason

type CenterAdminErrorReason int32
const (
	CenterAdminErrorReason_UNKNOWN_ERROR     CenterAdminErrorReason = 0
	CenterAdminErrorReason_LOGIN_FAILED      CenterAdminErrorReason = 1
	CenterAdminErrorReason_USERNAME_CONFLICT CenterAdminErrorReason = 2
	CenterAdminErrorReason_REGISTER_FAILED   CenterAdminErrorReason = 3
)

func (CenterAdminErrorReason) Descriptor

func (CenterAdminErrorReason) Enum

func (CenterAdminErrorReason) EnumDescriptor deprecated

func (CenterAdminErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use CenterAdminErrorReason.Descriptor instead.

func (CenterAdminErrorReason) Number

func (CenterAdminErrorReason) String

func (x CenterAdminErrorReason) String() string

func (CenterAdminErrorReason) Type

type CenterAdminHTTPClient

type CenterAdminHTTPClient interface {
	ActivateUser(ctx context.Context, req *UserIdReq, opts ...http.CallOption) (rsp *UserOkReply, err error)
	DeactivateUser(ctx context.Context, req *UserIdReq, opts ...http.CallOption) (rsp *UserOkReply, err error)
	GetUser(ctx context.Context, req *GetUserReq, opts ...http.CallOption) (rsp *GetUserReply, err error)
	ListUser(ctx context.Context, req *ListUserReq, opts ...http.CallOption) (rsp *ListUserReply, err error)
	Login(ctx context.Context, req *LoginReq, opts ...http.CallOption) (rsp *LoginReply, err error)
	Logout(ctx context.Context, req *LogoutReq, opts ...http.CallOption) (rsp *LogoutReply, err error)
}

func NewCenterAdminHTTPClient

func NewCenterAdminHTTPClient(client *http.Client) CenterAdminHTTPClient

type CenterAdminHTTPClientImpl

type CenterAdminHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*CenterAdminHTTPClientImpl) ActivateUser

func (c *CenterAdminHTTPClientImpl) ActivateUser(ctx context.Context, in *UserIdReq, opts ...http.CallOption) (*UserOkReply, error)

func (*CenterAdminHTTPClientImpl) DeactivateUser

func (c *CenterAdminHTTPClientImpl) DeactivateUser(ctx context.Context, in *UserIdReq, opts ...http.CallOption) (*UserOkReply, error)

func (*CenterAdminHTTPClientImpl) GetUser

func (*CenterAdminHTTPClientImpl) ListUser

func (*CenterAdminHTTPClientImpl) Login

func (*CenterAdminHTTPClientImpl) Logout

type CenterAdminHTTPServer

type CenterAdminHTTPServer interface {
	ActivateUser(context.Context, *UserIdReq) (*UserOkReply, error)
	DeactivateUser(context.Context, *UserIdReq) (*UserOkReply, error)
	GetUser(context.Context, *GetUserReq) (*GetUserReply, error)
	ListUser(context.Context, *ListUserReq) (*ListUserReply, error)
	Login(context.Context, *LoginReq) (*LoginReply, error)
	Logout(context.Context, *LogoutReq) (*LogoutReply, error)
}

type CenterAdminServer

type CenterAdminServer interface {
	Login(context.Context, *LoginReq) (*LoginReply, error)
	Logout(context.Context, *LogoutReq) (*LogoutReply, error)
	GetUser(context.Context, *GetUserReq) (*GetUserReply, error)
	ListUser(context.Context, *ListUserReq) (*ListUserReply, error)
	DeactivateUser(context.Context, *UserIdReq) (*UserOkReply, error)
	ActivateUser(context.Context, *UserIdReq) (*UserOkReply, error)
	// contains filtered or unexported methods
}

CenterAdminServer is the server API for CenterAdmin service. All implementations must embed UnimplementedCenterAdminServer for forward compatibility

type GetUserReply

type GetUserReply struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	IsActive bool   `protobuf:"varint,3,opt,name=isActive,proto3" json:"isActive,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserReply) Descriptor deprecated

func (*GetUserReply) Descriptor() ([]byte, []int)

Deprecated: Use GetUserReply.ProtoReflect.Descriptor instead.

func (*GetUserReply) GetId

func (x *GetUserReply) GetId() int64

func (*GetUserReply) GetIsActive

func (x *GetUserReply) GetIsActive() bool

func (*GetUserReply) GetUsername

func (x *GetUserReply) GetUsername() string

func (*GetUserReply) ProtoMessage

func (*GetUserReply) ProtoMessage()

func (*GetUserReply) ProtoReflect

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

func (*GetUserReply) Reset

func (x *GetUserReply) Reset()

func (*GetUserReply) String

func (x *GetUserReply) String() string

func (*GetUserReply) Validate

func (m *GetUserReply) Validate() error

Validate checks the field values on GetUserReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserReply) ValidateAll

func (m *GetUserReply) ValidateAll() error

ValidateAll checks the field values on GetUserReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserReplyMultiError, or nil if none found.

type GetUserReplyMultiError

type GetUserReplyMultiError []error

GetUserReplyMultiError is an error wrapping multiple validation errors returned by GetUserReply.ValidateAll() if the designated constraints aren't met.

func (GetUserReplyMultiError) AllErrors

func (m GetUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserReplyMultiError) Error

func (m GetUserReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetUserReplyValidationError

type GetUserReplyValidationError struct {
	// contains filtered or unexported fields
}

GetUserReplyValidationError is the validation error returned by GetUserReply.Validate if the designated constraints aren't met.

func (GetUserReplyValidationError) Cause

Cause function returns cause value.

func (GetUserReplyValidationError) Error

Error satisfies the builtin error interface

func (GetUserReplyValidationError) ErrorName

func (e GetUserReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserReplyValidationError) Field

Field function returns field value.

func (GetUserReplyValidationError) Key

Key function returns key value.

func (GetUserReplyValidationError) Reason

Reason function returns reason value.

type GetUserReq

type GetUserReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserReq) Descriptor deprecated

func (*GetUserReq) Descriptor() ([]byte, []int)

Deprecated: Use GetUserReq.ProtoReflect.Descriptor instead.

func (*GetUserReq) GetId

func (x *GetUserReq) GetId() int64

func (*GetUserReq) ProtoMessage

func (*GetUserReq) ProtoMessage()

func (*GetUserReq) ProtoReflect

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

func (*GetUserReq) Reset

func (x *GetUserReq) Reset()

func (*GetUserReq) String

func (x *GetUserReq) String() string

func (*GetUserReq) Validate

func (m *GetUserReq) Validate() error

Validate checks the field values on GetUserReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserReq) ValidateAll

func (m *GetUserReq) ValidateAll() error

ValidateAll checks the field values on GetUserReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserReqMultiError, or nil if none found.

type GetUserReqMultiError

type GetUserReqMultiError []error

GetUserReqMultiError is an error wrapping multiple validation errors returned by GetUserReq.ValidateAll() if the designated constraints aren't met.

func (GetUserReqMultiError) AllErrors

func (m GetUserReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserReqMultiError) Error

func (m GetUserReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetUserReqValidationError

type GetUserReqValidationError struct {
	// contains filtered or unexported fields
}

GetUserReqValidationError is the validation error returned by GetUserReq.Validate if the designated constraints aren't met.

func (GetUserReqValidationError) Cause

func (e GetUserReqValidationError) Cause() error

Cause function returns cause value.

func (GetUserReqValidationError) Error

Error satisfies the builtin error interface

func (GetUserReqValidationError) ErrorName

func (e GetUserReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserReqValidationError) Field

Field function returns field value.

func (GetUserReqValidationError) Key

Key function returns key value.

func (GetUserReqValidationError) Reason

func (e GetUserReqValidationError) Reason() string

Reason function returns reason value.

type ListUserReply

type ListUserReply struct {
	Results []*ListUserReply_User `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	Total   int64                 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserReply) Descriptor deprecated

func (*ListUserReply) Descriptor() ([]byte, []int)

Deprecated: Use ListUserReply.ProtoReflect.Descriptor instead.

func (*ListUserReply) GetResults

func (x *ListUserReply) GetResults() []*ListUserReply_User

func (*ListUserReply) GetTotal

func (x *ListUserReply) GetTotal() int64

func (*ListUserReply) ProtoMessage

func (*ListUserReply) ProtoMessage()

func (*ListUserReply) ProtoReflect

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

func (*ListUserReply) Reset

func (x *ListUserReply) Reset()

func (*ListUserReply) String

func (x *ListUserReply) String() string

func (*ListUserReply) Validate

func (m *ListUserReply) Validate() error

Validate checks the field values on ListUserReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUserReply) ValidateAll

func (m *ListUserReply) ValidateAll() error

ValidateAll checks the field values on ListUserReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUserReplyMultiError, or nil if none found.

type ListUserReplyMultiError

type ListUserReplyMultiError []error

ListUserReplyMultiError is an error wrapping multiple validation errors returned by ListUserReply.ValidateAll() if the designated constraints aren't met.

func (ListUserReplyMultiError) AllErrors

func (m ListUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserReplyMultiError) Error

func (m ListUserReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListUserReplyValidationError

type ListUserReplyValidationError struct {
	// contains filtered or unexported fields
}

ListUserReplyValidationError is the validation error returned by ListUserReply.Validate if the designated constraints aren't met.

func (ListUserReplyValidationError) Cause

Cause function returns cause value.

func (ListUserReplyValidationError) Error

Error satisfies the builtin error interface

func (ListUserReplyValidationError) ErrorName

func (e ListUserReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListUserReplyValidationError) Field

Field function returns field value.

func (ListUserReplyValidationError) Key

Key function returns key value.

func (ListUserReplyValidationError) Reason

Reason function returns reason value.

type ListUserReply_User

type ListUserReply_User struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserReply_User) Descriptor deprecated

func (*ListUserReply_User) Descriptor() ([]byte, []int)

Deprecated: Use ListUserReply_User.ProtoReflect.Descriptor instead.

func (*ListUserReply_User) GetId

func (x *ListUserReply_User) GetId() int64

func (*ListUserReply_User) GetUsername

func (x *ListUserReply_User) GetUsername() string

func (*ListUserReply_User) ProtoMessage

func (*ListUserReply_User) ProtoMessage()

func (*ListUserReply_User) ProtoReflect

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

func (*ListUserReply_User) Reset

func (x *ListUserReply_User) Reset()

func (*ListUserReply_User) String

func (x *ListUserReply_User) String() string

func (*ListUserReply_User) Validate

func (m *ListUserReply_User) Validate() error

Validate checks the field values on ListUserReply_User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUserReply_User) ValidateAll

func (m *ListUserReply_User) ValidateAll() error

ValidateAll checks the field values on ListUserReply_User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUserReply_UserMultiError, or nil if none found.

type ListUserReply_UserMultiError

type ListUserReply_UserMultiError []error

ListUserReply_UserMultiError is an error wrapping multiple validation errors returned by ListUserReply_User.ValidateAll() if the designated constraints aren't met.

func (ListUserReply_UserMultiError) AllErrors

func (m ListUserReply_UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserReply_UserMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUserReply_UserValidationError

type ListUserReply_UserValidationError struct {
	// contains filtered or unexported fields
}

ListUserReply_UserValidationError is the validation error returned by ListUserReply_User.Validate if the designated constraints aren't met.

func (ListUserReply_UserValidationError) Cause

Cause function returns cause value.

func (ListUserReply_UserValidationError) Error

Error satisfies the builtin error interface

func (ListUserReply_UserValidationError) ErrorName

ErrorName returns error name.

func (ListUserReply_UserValidationError) Field

Field function returns field value.

func (ListUserReply_UserValidationError) Key

Key function returns key value.

func (ListUserReply_UserValidationError) Reason

Reason function returns reason value.

type ListUserReq

type ListUserReq struct {
	PageIndex int32 `protobuf:"varint,1,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"`
	PageSize  int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserReq) Descriptor deprecated

func (*ListUserReq) Descriptor() ([]byte, []int)

Deprecated: Use ListUserReq.ProtoReflect.Descriptor instead.

func (*ListUserReq) GetPageIndex

func (x *ListUserReq) GetPageIndex() int32

func (*ListUserReq) GetPageSize

func (x *ListUserReq) GetPageSize() int32

func (*ListUserReq) ProtoMessage

func (*ListUserReq) ProtoMessage()

func (*ListUserReq) ProtoReflect

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

func (*ListUserReq) Reset

func (x *ListUserReq) Reset()

func (*ListUserReq) String

func (x *ListUserReq) String() string

func (*ListUserReq) Validate

func (m *ListUserReq) Validate() error

Validate checks the field values on ListUserReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUserReq) ValidateAll

func (m *ListUserReq) ValidateAll() error

ValidateAll checks the field values on ListUserReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUserReqMultiError, or nil if none found.

type ListUserReqMultiError

type ListUserReqMultiError []error

ListUserReqMultiError is an error wrapping multiple validation errors returned by ListUserReq.ValidateAll() if the designated constraints aren't met.

func (ListUserReqMultiError) AllErrors

func (m ListUserReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserReqMultiError) Error

func (m ListUserReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListUserReqValidationError

type ListUserReqValidationError struct {
	// contains filtered or unexported fields
}

ListUserReqValidationError is the validation error returned by ListUserReq.Validate if the designated constraints aren't met.

func (ListUserReqValidationError) Cause

Cause function returns cause value.

func (ListUserReqValidationError) Error

Error satisfies the builtin error interface

func (ListUserReqValidationError) ErrorName

func (e ListUserReqValidationError) ErrorName() string

ErrorName returns error name.

func (ListUserReqValidationError) Field

Field function returns field value.

func (ListUserReqValidationError) Key

Key function returns key value.

func (ListUserReqValidationError) Reason

Reason function returns reason value.

type LoginReply

type LoginReply struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginReply) Descriptor deprecated

func (*LoginReply) Descriptor() ([]byte, []int)

Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.

func (*LoginReply) GetToken

func (x *LoginReply) GetToken() string

func (*LoginReply) ProtoMessage

func (*LoginReply) ProtoMessage()

func (*LoginReply) ProtoReflect

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

func (*LoginReply) Reset

func (x *LoginReply) Reset()

func (*LoginReply) String

func (x *LoginReply) String() string

func (*LoginReply) Validate

func (m *LoginReply) Validate() error

Validate checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginReply) ValidateAll

func (m *LoginReply) ValidateAll() error

ValidateAll checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReplyMultiError, or nil if none found.

type LoginReplyMultiError

type LoginReplyMultiError []error

LoginReplyMultiError is an error wrapping multiple validation errors returned by LoginReply.ValidateAll() if the designated constraints aren't met.

func (LoginReplyMultiError) AllErrors

func (m LoginReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginReplyMultiError) Error

func (m LoginReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginReplyValidationError

type LoginReplyValidationError struct {
	// contains filtered or unexported fields
}

LoginReplyValidationError is the validation error returned by LoginReply.Validate if the designated constraints aren't met.

func (LoginReplyValidationError) Cause

func (e LoginReplyValidationError) Cause() error

Cause function returns cause value.

func (LoginReplyValidationError) Error

Error satisfies the builtin error interface

func (LoginReplyValidationError) ErrorName

func (e LoginReplyValidationError) ErrorName() string

ErrorName returns error name.

func (LoginReplyValidationError) Field

Field function returns field value.

func (LoginReplyValidationError) Key

Key function returns key value.

func (LoginReplyValidationError) Reason

func (e LoginReplyValidationError) Reason() string

Reason function returns reason value.

type LoginReq

type LoginReq struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,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) GetPassword

func (x *LoginReq) GetPassword() string

func (*LoginReq) GetUsername

func (x *LoginReq) GetUsername() 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

func (*LoginReq) Validate

func (m *LoginReq) Validate() error

Validate checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginReq) ValidateAll

func (m *LoginReq) ValidateAll() error

ValidateAll checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReqMultiError, or nil if none found.

type LoginReqMultiError

type LoginReqMultiError []error

LoginReqMultiError is an error wrapping multiple validation errors returned by LoginReq.ValidateAll() if the designated constraints aren't met.

func (LoginReqMultiError) AllErrors

func (m LoginReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginReqMultiError) Error

func (m LoginReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginReqValidationError

type LoginReqValidationError struct {
	// contains filtered or unexported fields
}

LoginReqValidationError is the validation error returned by LoginReq.Validate if the designated constraints aren't met.

func (LoginReqValidationError) Cause

func (e LoginReqValidationError) Cause() error

Cause function returns cause value.

func (LoginReqValidationError) Error

func (e LoginReqValidationError) Error() string

Error satisfies the builtin error interface

func (LoginReqValidationError) ErrorName

func (e LoginReqValidationError) ErrorName() string

ErrorName returns error name.

func (LoginReqValidationError) Field

func (e LoginReqValidationError) Field() string

Field function returns field value.

func (LoginReqValidationError) Key

func (e LoginReqValidationError) Key() bool

Key function returns key value.

func (LoginReqValidationError) Reason

func (e LoginReqValidationError) Reason() string

Reason function returns reason value.

type LogoutReply

type LogoutReply struct {
	// contains filtered or unexported fields
}

func (*LogoutReply) Descriptor deprecated

func (*LogoutReply) Descriptor() ([]byte, []int)

Deprecated: Use LogoutReply.ProtoReflect.Descriptor instead.

func (*LogoutReply) ProtoMessage

func (*LogoutReply) ProtoMessage()

func (*LogoutReply) ProtoReflect

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

func (*LogoutReply) Reset

func (x *LogoutReply) Reset()

func (*LogoutReply) String

func (x *LogoutReply) String() string

func (*LogoutReply) Validate

func (m *LogoutReply) Validate() error

Validate checks the field values on LogoutReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LogoutReply) ValidateAll

func (m *LogoutReply) ValidateAll() error

ValidateAll checks the field values on LogoutReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogoutReplyMultiError, or nil if none found.

type LogoutReplyMultiError

type LogoutReplyMultiError []error

LogoutReplyMultiError is an error wrapping multiple validation errors returned by LogoutReply.ValidateAll() if the designated constraints aren't met.

func (LogoutReplyMultiError) AllErrors

func (m LogoutReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LogoutReplyMultiError) Error

func (m LogoutReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LogoutReplyValidationError

type LogoutReplyValidationError struct {
	// contains filtered or unexported fields
}

LogoutReplyValidationError is the validation error returned by LogoutReply.Validate if the designated constraints aren't met.

func (LogoutReplyValidationError) Cause

Cause function returns cause value.

func (LogoutReplyValidationError) Error

Error satisfies the builtin error interface

func (LogoutReplyValidationError) ErrorName

func (e LogoutReplyValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutReplyValidationError) Field

Field function returns field value.

func (LogoutReplyValidationError) Key

Key function returns key value.

func (LogoutReplyValidationError) Reason

Reason function returns reason value.

type LogoutReq

type LogoutReq struct {
	// contains filtered or unexported fields
}

func (*LogoutReq) Descriptor deprecated

func (*LogoutReq) Descriptor() ([]byte, []int)

Deprecated: Use LogoutReq.ProtoReflect.Descriptor instead.

func (*LogoutReq) ProtoMessage

func (*LogoutReq) ProtoMessage()

func (*LogoutReq) ProtoReflect

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

func (*LogoutReq) Reset

func (x *LogoutReq) Reset()

func (*LogoutReq) String

func (x *LogoutReq) String() string

func (*LogoutReq) Validate

func (m *LogoutReq) Validate() error

Validate checks the field values on LogoutReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LogoutReq) ValidateAll

func (m *LogoutReq) ValidateAll() error

ValidateAll checks the field values on LogoutReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogoutReqMultiError, or nil if none found.

type LogoutReqMultiError

type LogoutReqMultiError []error

LogoutReqMultiError is an error wrapping multiple validation errors returned by LogoutReq.ValidateAll() if the designated constraints aren't met.

func (LogoutReqMultiError) AllErrors

func (m LogoutReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LogoutReqMultiError) Error

func (m LogoutReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LogoutReqValidationError

type LogoutReqValidationError struct {
	// contains filtered or unexported fields
}

LogoutReqValidationError is the validation error returned by LogoutReq.Validate if the designated constraints aren't met.

func (LogoutReqValidationError) Cause

func (e LogoutReqValidationError) Cause() error

Cause function returns cause value.

func (LogoutReqValidationError) Error

func (e LogoutReqValidationError) Error() string

Error satisfies the builtin error interface

func (LogoutReqValidationError) ErrorName

func (e LogoutReqValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutReqValidationError) Field

func (e LogoutReqValidationError) Field() string

Field function returns field value.

func (LogoutReqValidationError) Key

Key function returns key value.

func (LogoutReqValidationError) Reason

func (e LogoutReqValidationError) Reason() string

Reason function returns reason value.

type UnimplementedCenterAdminServer

type UnimplementedCenterAdminServer struct {
}

UnimplementedCenterAdminServer must be embedded to have forward compatible implementations.

func (UnimplementedCenterAdminServer) ActivateUser

func (UnimplementedCenterAdminServer) DeactivateUser

func (UnimplementedCenterAdminServer) GetUser

func (UnimplementedCenterAdminServer) ListUser

func (UnimplementedCenterAdminServer) Login

func (UnimplementedCenterAdminServer) Logout

type UnsafeCenterAdminServer

type UnsafeCenterAdminServer interface {
	// contains filtered or unexported methods
}

UnsafeCenterAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CenterAdminServer will result in compilation errors.

type UserIdReq

type UserIdReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UserIdReq) Descriptor deprecated

func (*UserIdReq) Descriptor() ([]byte, []int)

Deprecated: Use UserIdReq.ProtoReflect.Descriptor instead.

func (*UserIdReq) GetId

func (x *UserIdReq) GetId() int64

func (*UserIdReq) ProtoMessage

func (*UserIdReq) ProtoMessage()

func (*UserIdReq) ProtoReflect

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

func (*UserIdReq) Reset

func (x *UserIdReq) Reset()

func (*UserIdReq) String

func (x *UserIdReq) String() string

type UserOkReply

type UserOkReply struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*UserOkReply) Descriptor deprecated

func (*UserOkReply) Descriptor() ([]byte, []int)

Deprecated: Use UserOkReply.ProtoReflect.Descriptor instead.

func (*UserOkReply) GetOk

func (x *UserOkReply) GetOk() bool

func (*UserOkReply) ProtoMessage

func (*UserOkReply) ProtoMessage()

func (*UserOkReply) ProtoReflect

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

func (*UserOkReply) Reset

func (x *UserOkReply) Reset()

func (*UserOkReply) String

func (x *UserOkReply) String() string

Jump to

Keyboard shortcuts

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