account

package
v0.0.0-...-49c8f32 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 34 Imported by: 1

Documentation

Overview

Code generated by protoc-gen-auth. DO NOT EDIT! source: account.proto

Package account is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by protoc-gen-auth. DO NOT EDIT! source: auth.proto

Package account is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by protoc-gen-auth. DO NOT EDIT! source: bind.proto

Package account is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by protoc-gen-auth. DO NOT EDIT! source: include.proto

Code generated by protoc-gen-auth. DO NOT EDIT! source: inner_secret.proto

Package account is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by protoc-gen-auth. DO NOT EDIT! source: password.proto

Package account is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by protoc-gen-auth. DO NOT EDIT! source: profile.proto

Package account is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var AuthType_name = map[int32]string{
	0: "AUTH_TYPE_UNSPECIFIED",
	1: "AUTH_TYPE_APPLE_ID",
	2: "AUTH_TYPE_ACCOUNT",
	3: "AUTH_TYPE_WECHAT",
	4: "AUTH_TYPE_QQ",
	5: "AUTH_TYPE_WEIBO",
}
View Source
var AuthType_value = map[string]int32{
	"AUTH_TYPE_UNSPECIFIED": 0,
	"AUTH_TYPE_APPLE_ID":    1,
	"AUTH_TYPE_ACCOUNT":     2,
	"AUTH_TYPE_WECHAT":      3,
	"AUTH_TYPE_QQ":          4,
	"AUTH_TYPE_WEIBO":       5,
}
View Source
var Gender_name = map[int32]string{
	0: "GENDER_UNSPECIFIED",
	1: "GENDER_MALE",
	2: "GENDER_FEMALE",
	3: "GENDER_OTHER",
}
View Source
var Gender_value = map[string]int32{
	"GENDER_UNSPECIFIED": 0,
	"GENDER_MALE":        1,
	"GENDER_FEMALE":      2,
	"GENDER_OTHER":       3,
}
View Source
var Status_name = map[int32]string{
	0: "STATUS_UNSPECIFIED",
	1: "STATUS_ACTIVE",
	2: "STATUS_BLOCKED",
}
View Source
var Status_value = map[string]int32{
	"STATUS_UNSPECIFIED": 0,
	"STATUS_ACTIVE":      1,
	"STATUS_BLOCKED":     2,
}

Functions

func RegisterAccountHandler

func RegisterAccountHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAccountHandler registers the http handlers for service Account to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAccountHandlerClient

func RegisterAccountHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountClient) error

RegisterAccountHandlerClient registers the http handlers for service Account to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountClient" to call the correct interceptors.

func RegisterAccountHandlerFromEndpoint

func RegisterAccountHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAccountHandlerFromEndpoint is same as RegisterAccountHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAccountHandlerServer

func RegisterAccountHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServer) error

RegisterAccountHandlerServer registers the http handlers for service Account to "mux". UnaryRPC :call AccountServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterAccountScopeServer

func RegisterAccountScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv AccountServer) error

Register scoped server.

func RegisterAccountServer

func RegisterAccountServer(s *grpc.Server, srv AccountServer)

func RegisterAuthHandler

func RegisterAuthHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAuthHandler registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAuthHandlerClient

func RegisterAuthHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthClient) error

RegisterAuthHandlerClient registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthClient" to call the correct interceptors.

func RegisterAuthHandlerFromEndpoint

func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAuthHandlerFromEndpoint is same as RegisterAuthHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAuthHandlerServer

func RegisterAuthHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServer) error

RegisterAuthHandlerServer registers the http handlers for service Auth to "mux". UnaryRPC :call AuthServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterAuthScopeServer

func RegisterAuthScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv AuthServer) error

Register scoped server.

func RegisterAuthServer

func RegisterAuthServer(s *grpc.Server, srv AuthServer)

func RegisterBindHandler

func RegisterBindHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterBindHandler registers the http handlers for service Bind to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterBindHandlerClient

func RegisterBindHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BindClient) error

RegisterBindHandlerClient registers the http handlers for service Bind to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BindClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BindClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BindClient" to call the correct interceptors.

func RegisterBindHandlerFromEndpoint

func RegisterBindHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterBindHandlerFromEndpoint is same as RegisterBindHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterBindHandlerServer

func RegisterBindHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BindServer) error

RegisterBindHandlerServer registers the http handlers for service Bind to "mux". UnaryRPC :call BindServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterBindScopeServer

func RegisterBindScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv BindServer) error

Register scoped server.

func RegisterBindServer

func RegisterBindServer(s *grpc.Server, srv BindServer)

func RegisterInnerSecretHandler

func RegisterInnerSecretHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterInnerSecretHandler registers the http handlers for service InnerSecret to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterInnerSecretHandlerClient

func RegisterInnerSecretHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerSecretClient) error

RegisterInnerSecretHandlerClient registers the http handlers for service InnerSecret to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InnerSecretClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InnerSecretClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InnerSecretClient" to call the correct interceptors.

func RegisterInnerSecretHandlerFromEndpoint

func RegisterInnerSecretHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterInnerSecretHandlerFromEndpoint is same as RegisterInnerSecretHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterInnerSecretHandlerServer

func RegisterInnerSecretHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerSecretServer) error

RegisterInnerSecretHandlerServer registers the http handlers for service InnerSecret to "mux". UnaryRPC :call InnerSecretServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterInnerSecretScopeServer

func RegisterInnerSecretScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv InnerSecretServer) error

Register scoped server.

func RegisterInnerSecretServer

func RegisterInnerSecretServer(s *grpc.Server, srv InnerSecretServer)

func RegisterPasswordHandler

func RegisterPasswordHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterPasswordHandler registers the http handlers for service Password to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterPasswordHandlerClient

func RegisterPasswordHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PasswordClient) error

RegisterPasswordHandlerClient registers the http handlers for service Password to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PasswordClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PasswordClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PasswordClient" to call the correct interceptors.

func RegisterPasswordHandlerFromEndpoint

func RegisterPasswordHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterPasswordHandlerFromEndpoint is same as RegisterPasswordHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterPasswordHandlerServer

func RegisterPasswordHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PasswordServer) error

RegisterPasswordHandlerServer registers the http handlers for service Password to "mux". UnaryRPC :call PasswordServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterPasswordScopeServer

func RegisterPasswordScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv PasswordServer) error

Register scoped server.

func RegisterPasswordServer

func RegisterPasswordServer(s *grpc.Server, srv PasswordServer)

func RegisterProfileHandler

func RegisterProfileHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterProfileHandler registers the http handlers for service Profile to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterProfileHandlerClient

func RegisterProfileHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileClient) error

RegisterProfileHandlerClient registers the http handlers for service Profile to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProfileClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProfileClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProfileClient" to call the correct interceptors.

func RegisterProfileHandlerFromEndpoint

func RegisterProfileHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterProfileHandlerFromEndpoint is same as RegisterProfileHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterProfileHandlerServer

func RegisterProfileHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServer) error

RegisterProfileHandlerServer registers the http handlers for service Profile to "mux". UnaryRPC :call ProfileServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterProfileScopeServer

func RegisterProfileScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv ProfileServer) error

Register scoped server.

func RegisterProfileServer

func RegisterProfileServer(s *grpc.Server, srv ProfileServer)

Types

type AccountClient

type AccountClient interface {
	// Get account info.
	GetInfo(ctx context.Context, in *common.UniqueId, opts ...grpc.CallOption) (*Info, error)
	// Get account infos.
	GetInfos(ctx context.Context, in *common.UniqueIds, opts ...grpc.CallOption) (*Infos, error)
	// Update account info.
	UpdateInfo(ctx context.Context, in *VariableInfo, opts ...grpc.CallOption) (*Info, error)
}

AccountClient is the client API for Account service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAccountClient

func NewAccountClient(cc *grpc.ClientConn) AccountClient

type AccountServer

type AccountServer interface {
	// Get account info.
	GetInfo(context.Context, *common.UniqueId) (*Info, error)
	// Get account infos.
	GetInfos(context.Context, *common.UniqueIds) (*Infos, error)
	// Update account info.
	UpdateInfo(context.Context, *VariableInfo) (*Info, error)
}

AccountServer is the server API for Account service.

type AuthClient

type AuthClient interface {
	// Auth as guest.
	Guest(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Info, error)
	// Login.
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*Info, error)
	// OAuth.
	OAuth(ctx context.Context, in *OAuthRequest, opts ...grpc.CallOption) (*Info, error)
	// Refresh account token.
	Refresh(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Info, error)
}

AuthClient is the client API for Auth service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAuthClient

func NewAuthClient(cc *grpc.ClientConn) AuthClient

type AuthServer

type AuthServer interface {
	// Auth as guest.
	Guest(context.Context, *empty.Empty) (*Info, error)
	// Login.
	Login(context.Context, *LoginRequest) (*Info, error)
	// OAuth.
	OAuth(context.Context, *OAuthRequest) (*Info, error)
	// Refresh account token.
	Refresh(context.Context, *empty.Empty) (*Info, error)
}

AuthServer is the server API for Auth service.

type AuthType

type AuthType int32

Auth source enums.

const (
	AuthType_AUTH_TYPE_UNSPECIFIED AuthType = 0
	AuthType_AUTH_TYPE_APPLE_ID    AuthType = 1
	AuthType_AUTH_TYPE_ACCOUNT     AuthType = 2
	AuthType_AUTH_TYPE_WECHAT      AuthType = 3
	AuthType_AUTH_TYPE_QQ          AuthType = 4
	AuthType_AUTH_TYPE_WEIBO       AuthType = 5
)

func (AuthType) Enum

func (x AuthType) Enum() *AuthType

func (AuthType) EnumDescriptor

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

func (AuthType) String

func (x AuthType) String() string

func (*AuthType) UnmarshalJSON

func (x *AuthType) UnmarshalJSON(data []byte) error

type BindClient

type BindClient interface {
	// Apply account bind.
	Apply(ctx context.Context, in *BindRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Cancel account bind.
	Cancel(ctx context.Context, in *BindRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Get all bind info.
	Gets(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Bindings, error)
}

BindClient is the client API for Bind service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBindClient

func NewBindClient(cc *grpc.ClientConn) BindClient

type BindRequest

type BindRequest struct {
	Bind                 *Binding `protobuf:"bytes,1,req,name=bind" json:"bind,omitempty"`
	Code                 *string  `protobuf:"bytes,2,opt,name=code" json:"code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Account binding request.

func (*BindRequest) Descriptor

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

func (*BindRequest) GetBind

func (m *BindRequest) GetBind() *Binding

func (*BindRequest) GetCode

func (m *BindRequest) GetCode() string

func (*BindRequest) ProtoMessage

func (*BindRequest) ProtoMessage()

func (*BindRequest) Reset

func (m *BindRequest) Reset()

func (*BindRequest) String

func (m *BindRequest) String() string

func (*BindRequest) Validate

func (m *BindRequest) Validate() error

Validate checks the field values on BindRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*BindRequest) XXX_DiscardUnknown

func (m *BindRequest) XXX_DiscardUnknown()

func (*BindRequest) XXX_Marshal

func (m *BindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BindRequest) XXX_Merge

func (m *BindRequest) XXX_Merge(src proto.Message)

func (*BindRequest) XXX_Size

func (m *BindRequest) XXX_Size() int

func (*BindRequest) XXX_Unmarshal

func (m *BindRequest) XXX_Unmarshal(b []byte) error

type BindRequestValidationError

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

BindRequestValidationError is the validation error returned by BindRequest.Validate if the designated constraints aren't met.

func (BindRequestValidationError) Cause

Cause function returns cause value.

func (BindRequestValidationError) Error

Error satisfies the builtin error interface

func (BindRequestValidationError) ErrorName

func (e BindRequestValidationError) ErrorName() string

ErrorName returns error name.

func (BindRequestValidationError) Field

Field function returns field value.

func (BindRequestValidationError) Key

Key function returns key value.

func (BindRequestValidationError) Reason

Reason function returns reason value.

type BindServer

type BindServer interface {
	// Apply account bind.
	Apply(context.Context, *BindRequest) (*empty.Empty, error)
	// Cancel account bind.
	Cancel(context.Context, *BindRequest) (*empty.Empty, error)
	// Get all bind info.
	Gets(context.Context, *empty.Empty) (*Bindings, error)
}

BindServer is the server API for Bind service.

type Binding

type Binding struct {
	SourceType           *AuthType `protobuf:"varint,1,req,name=source_type,json=sourceType,enum=appootb.account.AuthType" json:"source_type,omitempty"`
	SourceId             *string   `protobuf:"bytes,2,req,name=source_id,json=sourceId" json:"source_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

Account binding information.

func (*Binding) Descriptor

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

func (*Binding) GetSourceId

func (m *Binding) GetSourceId() string

func (*Binding) GetSourceType

func (m *Binding) GetSourceType() AuthType

func (*Binding) ProtoMessage

func (*Binding) ProtoMessage()

func (*Binding) Reset

func (m *Binding) Reset()

func (*Binding) String

func (m *Binding) String() string

func (*Binding) Validate

func (m *Binding) Validate() error

Validate checks the field values on Binding with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Binding) XXX_DiscardUnknown

func (m *Binding) XXX_DiscardUnknown()

func (*Binding) XXX_Marshal

func (m *Binding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Binding) XXX_Merge

func (m *Binding) XXX_Merge(src proto.Message)

func (*Binding) XXX_Size

func (m *Binding) XXX_Size() int

func (*Binding) XXX_Unmarshal

func (m *Binding) XXX_Unmarshal(b []byte) error

type BindingValidationError

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

BindingValidationError is the validation error returned by Binding.Validate if the designated constraints aren't met.

func (BindingValidationError) Cause

func (e BindingValidationError) Cause() error

Cause function returns cause value.

func (BindingValidationError) Error

func (e BindingValidationError) Error() string

Error satisfies the builtin error interface

func (BindingValidationError) ErrorName

func (e BindingValidationError) ErrorName() string

ErrorName returns error name.

func (BindingValidationError) Field

func (e BindingValidationError) Field() string

Field function returns field value.

func (BindingValidationError) Key

func (e BindingValidationError) Key() bool

Key function returns key value.

func (BindingValidationError) Reason

func (e BindingValidationError) Reason() string

Reason function returns reason value.

type Bindings

type Bindings struct {
	Binds                []*Binding `protobuf:"bytes,1,rep,name=binds" json:"binds,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Account bindings.

func (*Bindings) Descriptor

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

func (*Bindings) GetBinds

func (m *Bindings) GetBinds() []*Binding

func (*Bindings) ProtoMessage

func (*Bindings) ProtoMessage()

func (*Bindings) Reset

func (m *Bindings) Reset()

func (*Bindings) String

func (m *Bindings) String() string

func (*Bindings) Validate

func (m *Bindings) Validate() error

Validate checks the field values on Bindings with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Bindings) XXX_DiscardUnknown

func (m *Bindings) XXX_DiscardUnknown()

func (*Bindings) XXX_Marshal

func (m *Bindings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Bindings) XXX_Merge

func (m *Bindings) XXX_Merge(src proto.Message)

func (*Bindings) XXX_Size

func (m *Bindings) XXX_Size() int

func (*Bindings) XXX_Unmarshal

func (m *Bindings) XXX_Unmarshal(b []byte) error

type BindingsValidationError

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

BindingsValidationError is the validation error returned by Bindings.Validate if the designated constraints aren't met.

func (BindingsValidationError) Cause

func (e BindingsValidationError) Cause() error

Cause function returns cause value.

func (BindingsValidationError) Error

func (e BindingsValidationError) Error() string

Error satisfies the builtin error interface

func (BindingsValidationError) ErrorName

func (e BindingsValidationError) ErrorName() string

ErrorName returns error name.

func (BindingsValidationError) Field

func (e BindingsValidationError) Field() string

Field function returns field value.

func (BindingsValidationError) Key

func (e BindingsValidationError) Key() bool

Key function returns key value.

func (BindingsValidationError) Reason

func (e BindingsValidationError) Reason() string

Reason function returns reason value.

type Gender

type Gender int32

Account gender enums.

const (
	Gender_GENDER_UNSPECIFIED Gender = 0
	Gender_GENDER_MALE        Gender = 1
	Gender_GENDER_FEMALE      Gender = 2
	Gender_GENDER_OTHER       Gender = 3
)

func (Gender) Enum

func (x Gender) Enum() *Gender

func (Gender) EnumDescriptor

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

func (Gender) String

func (x Gender) String() string

func (*Gender) UnmarshalJSON

func (x *Gender) UnmarshalJSON(data []byte) error

type Info

type Info struct {
	UniqueId             *uint64              `protobuf:"varint,1,req,name=unique_id,json=uniqueId" json:"unique_id,omitempty"`
	Nickname             *string              `protobuf:"bytes,2,req,name=nickname" json:"nickname,omitempty"`
	Avatar               *string              `protobuf:"bytes,3,req,name=avatar" json:"avatar,omitempty"`
	Status               *Status              `protobuf:"varint,4,req,name=status,enum=appootb.account.Status" json:"status,omitempty"`
	Signature            *string              `protobuf:"bytes,5,opt,name=signature" json:"signature,omitempty"`
	Gender               *Gender              `protobuf:"varint,6,opt,name=gender,enum=appootb.account.Gender" json:"gender,omitempty"`
	Signs                *string              `protobuf:"bytes,7,opt,name=signs" json:"signs,omitempty"`
	Location             *string              `protobuf:"bytes,8,opt,name=location" json:"location,omitempty"`
	Secret               *Secret              `protobuf:"bytes,9,opt,name=secret" json:"secret,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,97,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,98,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"`
	Extend               *any.Any             `protobuf:"bytes,99,opt,name=extend" json:"extend,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Account information.

func (*Info) Descriptor

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

func (*Info) GetAvatar

func (m *Info) GetAvatar() string

func (*Info) GetCreatedAt

func (m *Info) GetCreatedAt() *timestamp.Timestamp

func (*Info) GetExtend

func (m *Info) GetExtend() *any.Any

func (*Info) GetGender

func (m *Info) GetGender() Gender

func (*Info) GetLocation

func (m *Info) GetLocation() string

func (*Info) GetNickname

func (m *Info) GetNickname() string

func (*Info) GetSecret

func (m *Info) GetSecret() *Secret

func (*Info) GetSignature

func (m *Info) GetSignature() string

func (*Info) GetSigns

func (m *Info) GetSigns() string

func (*Info) GetStatus

func (m *Info) GetStatus() Status

func (*Info) GetUniqueId

func (m *Info) GetUniqueId() uint64

func (*Info) GetUpdatedAt

func (m *Info) GetUpdatedAt() *timestamp.Timestamp

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) String

func (m *Info) String() string

func (*Info) Validate

func (m *Info) Validate() error

Validate checks the field values on Info with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Info) XXX_DiscardUnknown

func (m *Info) XXX_DiscardUnknown()

func (*Info) XXX_Marshal

func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Info) XXX_Merge

func (m *Info) XXX_Merge(src proto.Message)

func (*Info) XXX_Size

func (m *Info) XXX_Size() int

func (*Info) XXX_Unmarshal

func (m *Info) XXX_Unmarshal(b []byte) error

type InfoValidationError

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

InfoValidationError is the validation error returned by Info.Validate if the designated constraints aren't met.

func (InfoValidationError) Cause

func (e InfoValidationError) Cause() error

Cause function returns cause value.

func (InfoValidationError) Error

func (e InfoValidationError) Error() string

Error satisfies the builtin error interface

func (InfoValidationError) ErrorName

func (e InfoValidationError) ErrorName() string

ErrorName returns error name.

func (InfoValidationError) Field

func (e InfoValidationError) Field() string

Field function returns field value.

func (InfoValidationError) Key

func (e InfoValidationError) Key() bool

Key function returns key value.

func (InfoValidationError) Reason

func (e InfoValidationError) Reason() string

Reason function returns reason value.

type Infos

type Infos struct {
	Accounts             map[uint64]*Info `` /* 137-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Accounts information.

func (*Infos) Descriptor

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

func (*Infos) GetAccounts

func (m *Infos) GetAccounts() map[uint64]*Info

func (*Infos) ProtoMessage

func (*Infos) ProtoMessage()

func (*Infos) Reset

func (m *Infos) Reset()

func (*Infos) String

func (m *Infos) String() string

func (*Infos) Validate

func (m *Infos) Validate() error

Validate checks the field values on Infos with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Infos) XXX_DiscardUnknown

func (m *Infos) XXX_DiscardUnknown()

func (*Infos) XXX_Marshal

func (m *Infos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Infos) XXX_Merge

func (m *Infos) XXX_Merge(src proto.Message)

func (*Infos) XXX_Size

func (m *Infos) XXX_Size() int

func (*Infos) XXX_Unmarshal

func (m *Infos) XXX_Unmarshal(b []byte) error

type InfosValidationError

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

InfosValidationError is the validation error returned by Infos.Validate if the designated constraints aren't met.

func (InfosValidationError) Cause

func (e InfosValidationError) Cause() error

Cause function returns cause value.

func (InfosValidationError) Error

func (e InfosValidationError) Error() string

Error satisfies the builtin error interface

func (InfosValidationError) ErrorName

func (e InfosValidationError) ErrorName() string

ErrorName returns error name.

func (InfosValidationError) Field

func (e InfosValidationError) Field() string

Field function returns field value.

func (InfosValidationError) Key

func (e InfosValidationError) Key() bool

Key function returns key value.

func (InfosValidationError) Reason

func (e InfosValidationError) Reason() string

Reason function returns reason value.

type InnerSecretClient

type InnerSecretClient interface {
	// Get token info.
	GetSecretInfo(ctx context.Context, in *Secret, opts ...grpc.CallOption) (*secret.Info, error)
}

InnerSecretClient is the client API for InnerSecret service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewInnerSecretClient

func NewInnerSecretClient(cc *grpc.ClientConn) InnerSecretClient

type InnerSecretServer

type InnerSecretServer interface {
	// Get token info.
	GetSecretInfo(context.Context, *Secret) (*secret.Info, error)
}

InnerSecretServer is the server API for InnerSecret service.

type LoginRequest

type LoginRequest struct {
	RelateId *string `protobuf:"bytes,1,req,name=relate_id,json=relateId" json:"relate_id,omitempty"`
	// Types that are valid to be assigned to Secure:
	//	*LoginRequest_Code
	//	*LoginRequest_Password
	Secure               isLoginRequest_Secure `protobuf_oneof:"secure"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Login request.

func (*LoginRequest) Descriptor

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

func (*LoginRequest) GetCode

func (m *LoginRequest) GetCode() string

func (*LoginRequest) GetPassword

func (m *LoginRequest) GetPassword() string

func (*LoginRequest) GetRelateId

func (m *LoginRequest) GetRelateId() string

func (*LoginRequest) GetSecure

func (m *LoginRequest) GetSecure() isLoginRequest_Secure

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) Reset

func (m *LoginRequest) Reset()

func (*LoginRequest) String

func (m *LoginRequest) String() string

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*LoginRequest) XXX_DiscardUnknown

func (m *LoginRequest) XXX_DiscardUnknown()

func (*LoginRequest) XXX_Marshal

func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoginRequest) XXX_Merge

func (m *LoginRequest) XXX_Merge(src proto.Message)

func (*LoginRequest) XXX_OneofWrappers

func (*LoginRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*LoginRequest) XXX_Size

func (m *LoginRequest) XXX_Size() int

func (*LoginRequest) XXX_Unmarshal

func (m *LoginRequest) XXX_Unmarshal(b []byte) error

type LoginRequestValidationError

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

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginRequest_Code

type LoginRequest_Code struct {
	Code string `protobuf:"bytes,2,opt,name=code,oneof"`
}

type LoginRequest_Password

type LoginRequest_Password struct {
	Password string `protobuf:"bytes,3,opt,name=password,oneof"`
}

type OAuthRequest

type OAuthRequest struct {
	Type                 *AuthType `protobuf:"varint,1,req,name=type,enum=appootb.account.AuthType" json:"type,omitempty"`
	OpenId               *string   `protobuf:"bytes,2,req,name=open_id,json=openId" json:"open_id,omitempty"`
	AccessToken          *string   `protobuf:"bytes,3,req,name=access_token,json=accessToken" json:"access_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

OAuth request.

func (*OAuthRequest) Descriptor

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

func (*OAuthRequest) GetAccessToken

func (m *OAuthRequest) GetAccessToken() string

func (*OAuthRequest) GetOpenId

func (m *OAuthRequest) GetOpenId() string

func (*OAuthRequest) GetType

func (m *OAuthRequest) GetType() AuthType

func (*OAuthRequest) ProtoMessage

func (*OAuthRequest) ProtoMessage()

func (*OAuthRequest) Reset

func (m *OAuthRequest) Reset()

func (*OAuthRequest) String

func (m *OAuthRequest) String() string

func (*OAuthRequest) Validate

func (m *OAuthRequest) Validate() error

Validate checks the field values on OAuthRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*OAuthRequest) XXX_DiscardUnknown

func (m *OAuthRequest) XXX_DiscardUnknown()

func (*OAuthRequest) XXX_Marshal

func (m *OAuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OAuthRequest) XXX_Merge

func (m *OAuthRequest) XXX_Merge(src proto.Message)

func (*OAuthRequest) XXX_Size

func (m *OAuthRequest) XXX_Size() int

func (*OAuthRequest) XXX_Unmarshal

func (m *OAuthRequest) XXX_Unmarshal(b []byte) error

type OAuthRequestValidationError

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

OAuthRequestValidationError is the validation error returned by OAuthRequest.Validate if the designated constraints aren't met.

func (OAuthRequestValidationError) Cause

Cause function returns cause value.

func (OAuthRequestValidationError) Error

Error satisfies the builtin error interface

func (OAuthRequestValidationError) ErrorName

func (e OAuthRequestValidationError) ErrorName() string

ErrorName returns error name.

func (OAuthRequestValidationError) Field

Field function returns field value.

func (OAuthRequestValidationError) Key

Key function returns key value.

func (OAuthRequestValidationError) Reason

Reason function returns reason value.

type PasswordClient

type PasswordClient interface {
	// Set account password.
	Set(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*Secret, error)
	// Update account password.
	Update(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*Secret, error)
	// Reset account password.
	Reset(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*Secret, error)
}

PasswordClient is the client API for Password service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPasswordClient

func NewPasswordClient(cc *grpc.ClientConn) PasswordClient

type PasswordRequest

type PasswordRequest struct {
	Password             *string  `protobuf:"bytes,1,req,name=password" json:"password,omitempty"`
	OldPassword          *string  `protobuf:"bytes,2,opt,name=old_password,json=oldPassword" json:"old_password,omitempty"`
	VerifyCode           *string  `protobuf:"bytes,3,opt,name=verify_code,json=verifyCode" json:"verify_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Account password request.

func (*PasswordRequest) Descriptor

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

func (*PasswordRequest) GetOldPassword

func (m *PasswordRequest) GetOldPassword() string

func (*PasswordRequest) GetPassword

func (m *PasswordRequest) GetPassword() string

func (*PasswordRequest) GetVerifyCode

func (m *PasswordRequest) GetVerifyCode() string

func (*PasswordRequest) ProtoMessage

func (*PasswordRequest) ProtoMessage()

func (*PasswordRequest) Reset

func (m *PasswordRequest) Reset()

func (*PasswordRequest) String

func (m *PasswordRequest) String() string

func (*PasswordRequest) Validate

func (m *PasswordRequest) Validate() error

Validate checks the field values on PasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*PasswordRequest) XXX_DiscardUnknown

func (m *PasswordRequest) XXX_DiscardUnknown()

func (*PasswordRequest) XXX_Marshal

func (m *PasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PasswordRequest) XXX_Merge

func (m *PasswordRequest) XXX_Merge(src proto.Message)

func (*PasswordRequest) XXX_Size

func (m *PasswordRequest) XXX_Size() int

func (*PasswordRequest) XXX_Unmarshal

func (m *PasswordRequest) XXX_Unmarshal(b []byte) error

type PasswordRequestValidationError

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

PasswordRequestValidationError is the validation error returned by PasswordRequest.Validate if the designated constraints aren't met.

func (PasswordRequestValidationError) Cause

Cause function returns cause value.

func (PasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (PasswordRequestValidationError) ErrorName

func (e PasswordRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PasswordRequestValidationError) Field

Field function returns field value.

func (PasswordRequestValidationError) Key

Key function returns key value.

func (PasswordRequestValidationError) Reason

Reason function returns reason value.

type PasswordServer

type PasswordServer interface {
	// Set account password.
	Set(context.Context, *PasswordRequest) (*Secret, error)
	// Update account password.
	Update(context.Context, *PasswordRequest) (*Secret, error)
	// Reset account password.
	Reset(context.Context, *PasswordRequest) (*Secret, error)
}

PasswordServer is the server API for Password service.

type ProfileClient

type ProfileClient interface {
	// Set or update account property.
	Set(ctx context.Context, in *Property, opts ...grpc.CallOption) (*empty.Empty, error)
	// Get account property.
	Get(ctx context.Context, in *Property, opts ...grpc.CallOption) (*Property, error)
	// Get account all properties.
	Gets(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Properties, error)
}

ProfileClient is the client API for Profile service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewProfileClient

func NewProfileClient(cc *grpc.ClientConn) ProfileClient

type ProfileServer

type ProfileServer interface {
	// Set or update account property.
	Set(context.Context, *Property) (*empty.Empty, error)
	// Get account property.
	Get(context.Context, *Property) (*Property, error)
	// Get account all properties.
	Gets(context.Context, *empty.Empty) (*Properties, error)
}

ProfileServer is the server API for Profile service.

type Properties

type Properties struct {
	Kvs                  map[string]*_struct.Struct `` /* 126-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

Account properties.

func (*Properties) Descriptor

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

func (*Properties) GetKvs

func (m *Properties) GetKvs() map[string]*_struct.Struct

func (*Properties) ProtoMessage

func (*Properties) ProtoMessage()

func (*Properties) Reset

func (m *Properties) Reset()

func (*Properties) String

func (m *Properties) String() string

func (*Properties) Validate

func (m *Properties) Validate() error

Validate checks the field values on Properties with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Properties) XXX_DiscardUnknown

func (m *Properties) XXX_DiscardUnknown()

func (*Properties) XXX_Marshal

func (m *Properties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Properties) XXX_Merge

func (m *Properties) XXX_Merge(src proto.Message)

func (*Properties) XXX_Size

func (m *Properties) XXX_Size() int

func (*Properties) XXX_Unmarshal

func (m *Properties) XXX_Unmarshal(b []byte) error

type PropertiesValidationError

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

PropertiesValidationError is the validation error returned by Properties.Validate if the designated constraints aren't met.

func (PropertiesValidationError) Cause

func (e PropertiesValidationError) Cause() error

Cause function returns cause value.

func (PropertiesValidationError) Error

Error satisfies the builtin error interface

func (PropertiesValidationError) ErrorName

func (e PropertiesValidationError) ErrorName() string

ErrorName returns error name.

func (PropertiesValidationError) Field

Field function returns field value.

func (PropertiesValidationError) Key

Key function returns key value.

func (PropertiesValidationError) Reason

func (e PropertiesValidationError) Reason() string

Reason function returns reason value.

type Property

type Property struct {
	Name                 *string         `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Value                *_struct.Struct `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Account property.

func (*Property) Descriptor

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

func (*Property) GetName

func (m *Property) GetName() string

func (*Property) GetValue

func (m *Property) GetValue() *_struct.Struct

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) Reset

func (m *Property) Reset()

func (*Property) String

func (m *Property) String() string

func (*Property) Validate

func (m *Property) Validate() error

Validate checks the field values on Property with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Property) XXX_DiscardUnknown

func (m *Property) XXX_DiscardUnknown()

func (*Property) XXX_Marshal

func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Property) XXX_Merge

func (m *Property) XXX_Merge(src proto.Message)

func (*Property) XXX_Size

func (m *Property) XXX_Size() int

func (*Property) XXX_Unmarshal

func (m *Property) XXX_Unmarshal(b []byte) error

type PropertyValidationError

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

PropertyValidationError is the validation error returned by Property.Validate if the designated constraints aren't met.

func (PropertyValidationError) Cause

func (e PropertyValidationError) Cause() error

Cause function returns cause value.

func (PropertyValidationError) Error

func (e PropertyValidationError) Error() string

Error satisfies the builtin error interface

func (PropertyValidationError) ErrorName

func (e PropertyValidationError) ErrorName() string

ErrorName returns error name.

func (PropertyValidationError) Field

func (e PropertyValidationError) Field() string

Field function returns field value.

func (PropertyValidationError) Key

func (e PropertyValidationError) Key() bool

Key function returns key value.

func (PropertyValidationError) Reason

func (e PropertyValidationError) Reason() string

Reason function returns reason value.

type Secret

type Secret struct {
	Token                *string  `protobuf:"bytes,1,req,name=token" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Account secret.

func (*Secret) Descriptor

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

func (*Secret) GetToken

func (m *Secret) GetToken() string

func (*Secret) ProtoMessage

func (*Secret) ProtoMessage()

func (*Secret) Reset

func (m *Secret) Reset()

func (*Secret) String

func (m *Secret) String() string

func (*Secret) Validate

func (m *Secret) Validate() error

Validate checks the field values on Secret with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Secret) XXX_DiscardUnknown

func (m *Secret) XXX_DiscardUnknown()

func (*Secret) XXX_Marshal

func (m *Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Secret) XXX_Merge

func (m *Secret) XXX_Merge(src proto.Message)

func (*Secret) XXX_Size

func (m *Secret) XXX_Size() int

func (*Secret) XXX_Unmarshal

func (m *Secret) XXX_Unmarshal(b []byte) error

type SecretValidationError

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

SecretValidationError is the validation error returned by Secret.Validate if the designated constraints aren't met.

func (SecretValidationError) Cause

func (e SecretValidationError) Cause() error

Cause function returns cause value.

func (SecretValidationError) Error

func (e SecretValidationError) Error() string

Error satisfies the builtin error interface

func (SecretValidationError) ErrorName

func (e SecretValidationError) ErrorName() string

ErrorName returns error name.

func (SecretValidationError) Field

func (e SecretValidationError) Field() string

Field function returns field value.

func (SecretValidationError) Key

func (e SecretValidationError) Key() bool

Key function returns key value.

func (SecretValidationError) Reason

func (e SecretValidationError) Reason() string

Reason function returns reason value.

type Status

type Status int32
const (
	Status_STATUS_UNSPECIFIED Status = 0
	Status_STATUS_ACTIVE      Status = 1
	Status_STATUS_BLOCKED     Status = 2
)

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor

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

func (Status) String

func (x Status) String() string

func (*Status) UnmarshalJSON

func (x *Status) UnmarshalJSON(data []byte) error

type UnimplementedAccountServer

type UnimplementedAccountServer struct {
}

UnimplementedAccountServer can be embedded to have forward compatible implementations.

func (*UnimplementedAccountServer) GetInfo

func (*UnimplementedAccountServer) GetInfos

func (*UnimplementedAccountServer) UpdateInfo

func (*UnimplementedAccountServer) UpdateInfo(ctx context.Context, req *VariableInfo) (*Info, error)

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServer) Guest

func (*UnimplementedAuthServer) Login

func (*UnimplementedAuthServer) OAuth

func (*UnimplementedAuthServer) Refresh

func (*UnimplementedAuthServer) Refresh(ctx context.Context, req *empty.Empty) (*Info, error)

type UnimplementedBindServer

type UnimplementedBindServer struct {
}

UnimplementedBindServer can be embedded to have forward compatible implementations.

func (*UnimplementedBindServer) Apply

func (*UnimplementedBindServer) Cancel

func (*UnimplementedBindServer) Gets

type UnimplementedInnerSecretServer

type UnimplementedInnerSecretServer struct {
}

UnimplementedInnerSecretServer can be embedded to have forward compatible implementations.

func (*UnimplementedInnerSecretServer) GetSecretInfo

func (*UnimplementedInnerSecretServer) GetSecretInfo(ctx context.Context, req *Secret) (*secret.Info, error)

type UnimplementedPasswordServer

type UnimplementedPasswordServer struct {
}

UnimplementedPasswordServer can be embedded to have forward compatible implementations.

func (*UnimplementedPasswordServer) Reset

func (*UnimplementedPasswordServer) Set

func (*UnimplementedPasswordServer) Update

type UnimplementedProfileServer

type UnimplementedProfileServer struct {
}

UnimplementedProfileServer can be embedded to have forward compatible implementations.

func (*UnimplementedProfileServer) Get

func (*UnimplementedProfileServer) Gets

func (*UnimplementedProfileServer) Set

type VariableInfo

type VariableInfo struct {
	Nickname             *string  `protobuf:"bytes,1,opt,name=nickname" json:"nickname,omitempty"`
	Avatar               *string  `protobuf:"bytes,2,opt,name=avatar" json:"avatar,omitempty"`
	Signature            *string  `protobuf:"bytes,3,opt,name=signature" json:"signature,omitempty"`
	Gender               *Gender  `protobuf:"varint,4,opt,name=gender,enum=appootb.account.Gender" json:"gender,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Update account info request.

func (*VariableInfo) Descriptor

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

func (*VariableInfo) GetAvatar

func (m *VariableInfo) GetAvatar() string

func (*VariableInfo) GetGender

func (m *VariableInfo) GetGender() Gender

func (*VariableInfo) GetNickname

func (m *VariableInfo) GetNickname() string

func (*VariableInfo) GetSignature

func (m *VariableInfo) GetSignature() string

func (*VariableInfo) ProtoMessage

func (*VariableInfo) ProtoMessage()

func (*VariableInfo) Reset

func (m *VariableInfo) Reset()

func (*VariableInfo) String

func (m *VariableInfo) String() string

func (*VariableInfo) Validate

func (m *VariableInfo) Validate() error

Validate checks the field values on VariableInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*VariableInfo) XXX_DiscardUnknown

func (m *VariableInfo) XXX_DiscardUnknown()

func (*VariableInfo) XXX_Marshal

func (m *VariableInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VariableInfo) XXX_Merge

func (m *VariableInfo) XXX_Merge(src proto.Message)

func (*VariableInfo) XXX_Size

func (m *VariableInfo) XXX_Size() int

func (*VariableInfo) XXX_Unmarshal

func (m *VariableInfo) XXX_Unmarshal(b []byte) error

type VariableInfoValidationError

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

VariableInfoValidationError is the validation error returned by VariableInfo.Validate if the designated constraints aren't met.

func (VariableInfoValidationError) Cause

Cause function returns cause value.

func (VariableInfoValidationError) Error

Error satisfies the builtin error interface

func (VariableInfoValidationError) ErrorName

func (e VariableInfoValidationError) ErrorName() string

ErrorName returns error name.

func (VariableInfoValidationError) Field

Field function returns field value.

func (VariableInfoValidationError) Key

Key function returns key value.

func (VariableInfoValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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