go_micro_srv_register

package
v0.0.0-...-f4f000c Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRegisterHandler

func RegisterRegisterHandler(s server.Server, hdlr RegisterHandler, opts ...server.HandlerOption) error

Types

type RegRequest

type RegRequest struct {
	Mobile               string   `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	SmsCode              string   `protobuf:"bytes,3,opt,name=sms_code,json=smsCode,proto3" json:"sms_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RegRequest) Descriptor

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

func (*RegRequest) GetMobile

func (m *RegRequest) GetMobile() string

func (*RegRequest) GetPassword

func (m *RegRequest) GetPassword() string

func (*RegRequest) GetSmsCode

func (m *RegRequest) GetSmsCode() string

func (*RegRequest) ProtoMessage

func (*RegRequest) ProtoMessage()

func (*RegRequest) Reset

func (m *RegRequest) Reset()

func (*RegRequest) String

func (m *RegRequest) String() string

func (*RegRequest) XXX_DiscardUnknown

func (m *RegRequest) XXX_DiscardUnknown()

func (*RegRequest) XXX_Marshal

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

func (*RegRequest) XXX_Merge

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

func (*RegRequest) XXX_Size

func (m *RegRequest) XXX_Size() int

func (*RegRequest) XXX_Unmarshal

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

type RegResponse

type RegResponse struct {
	Errno                string   `protobuf:"bytes,1,opt,name=errno,proto3" json:"errno,omitempty"`
	Errmsg               string   `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"`
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

添加session,注册之后直接是登录状态

func (*RegResponse) Descriptor

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

func (*RegResponse) GetErrmsg

func (m *RegResponse) GetErrmsg() string

func (*RegResponse) GetErrno

func (m *RegResponse) GetErrno() string

func (*RegResponse) GetName

func (m *RegResponse) GetName() string

func (*RegResponse) ProtoMessage

func (*RegResponse) ProtoMessage()

func (*RegResponse) Reset

func (m *RegResponse) Reset()

func (*RegResponse) String

func (m *RegResponse) String() string

func (*RegResponse) XXX_DiscardUnknown

func (m *RegResponse) XXX_DiscardUnknown()

func (*RegResponse) XXX_Marshal

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

func (*RegResponse) XXX_Merge

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

func (*RegResponse) XXX_Size

func (m *RegResponse) XXX_Size() int

func (*RegResponse) XXX_Unmarshal

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

type RegisterHandler

type RegisterHandler interface {
	SmsCode(context.Context, *Request, *Response) error
	Register(context.Context, *RegRequest, *RegResponse) error
	Login(context.Context, *RegRequest, *RegResponse) error
}

type RegisterService

type RegisterService interface {
	SmsCode(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
	Register(ctx context.Context, in *RegRequest, opts ...client.CallOption) (*RegResponse, error)
	Login(ctx context.Context, in *RegRequest, opts ...client.CallOption) (*RegResponse, error)
}

func NewRegisterService

func NewRegisterService(name string, c client.Client) RegisterService

type Request

type Request struct {
	Mobile               string   `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Text                 string   `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	Uuid                 string   `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) GetMobile

func (m *Request) GetMobile() string

func (*Request) GetText

func (m *Request) GetText() string

func (*Request) GetUuid

func (m *Request) GetUuid() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

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

func (*Request) XXX_Merge

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

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

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

type Response

type Response struct {
	Errno                string   `protobuf:"bytes,1,opt,name=errno,proto3" json:"errno,omitempty"`
	Errmsg               string   `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetErrmsg

func (m *Response) GetErrmsg() string

func (*Response) GetErrno

func (m *Response) GetErrno() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

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

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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