Documentation ¶
Index ¶
- func RegisterVerificationCodeServer(s *grpc.Server, srv VerificationCodeServer)
- type TokenData
- func (*TokenData) Descriptor() ([]byte, []int)
- func (m *TokenData) GetToken() string
- func (*TokenData) ProtoMessage()
- func (m *TokenData) Reset()
- func (m *TokenData) String() string
- func (m *TokenData) XXX_DiscardUnknown()
- func (m *TokenData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenData) XXX_Merge(src proto.Message)
- func (m *TokenData) XXX_Size() int
- func (m *TokenData) XXX_Unmarshal(b []byte) error
- type UnimplementedVerificationCodeServer
- type UserData
- func (*UserData) Descriptor() ([]byte, []int)
- func (m *UserData) GetUserID() string
- func (*UserData) ProtoMessage()
- func (m *UserData) Reset()
- func (m *UserData) String() string
- func (m *UserData) XXX_DiscardUnknown()
- func (m *UserData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserData) XXX_Merge(src proto.Message)
- func (m *UserData) XXX_Size() int
- func (m *UserData) XXX_Unmarshal(b []byte) error
- type Valid
- func (*Valid) Descriptor() ([]byte, []int)
- func (m *Valid) GetUserID() string
- func (m *Valid) GetValid() bool
- func (*Valid) ProtoMessage()
- func (m *Valid) Reset()
- func (m *Valid) String() string
- func (m *Valid) XXX_DiscardUnknown()
- func (m *Valid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Valid) XXX_Merge(src proto.Message)
- func (m *Valid) XXX_Size() int
- func (m *Valid) XXX_Unmarshal(b []byte) error
- type VerificationCodeClient
- type VerificationCodeServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterVerificationCodeServer ¶
func RegisterVerificationCodeServer(s *grpc.Server, srv VerificationCodeServer)
Types ¶
type TokenData ¶
type TokenData struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenData) Descriptor ¶
func (*TokenData) ProtoMessage ¶
func (*TokenData) ProtoMessage()
func (*TokenData) XXX_DiscardUnknown ¶
func (m *TokenData) XXX_DiscardUnknown()
func (*TokenData) XXX_Marshal ¶
func (*TokenData) XXX_Unmarshal ¶
type UnimplementedVerificationCodeServer ¶
type UnimplementedVerificationCodeServer struct { }
UnimplementedVerificationCodeServer can be embedded to have forward compatible implementations.
type UserData ¶
type UserData struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserData) Descriptor ¶
func (*UserData) ProtoMessage ¶
func (*UserData) ProtoMessage()
func (*UserData) XXX_DiscardUnknown ¶
func (m *UserData) XXX_DiscardUnknown()
func (*UserData) XXX_Marshal ¶
func (*UserData) XXX_Unmarshal ¶
type Valid ¶
type Valid struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Valid bool `protobuf:"varint,2,opt,name=valid,proto3" json:"valid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Valid) Descriptor ¶
func (*Valid) ProtoMessage ¶
func (*Valid) ProtoMessage()
func (*Valid) XXX_DiscardUnknown ¶
func (m *Valid) XXX_DiscardUnknown()
func (*Valid) XXX_Marshal ¶
func (*Valid) XXX_Unmarshal ¶
type VerificationCodeClient ¶
type VerificationCodeClient interface { Create(ctx context.Context, in *UserData, opts ...grpc.CallOption) (*TokenData, error) Validate(ctx context.Context, in *TokenData, opts ...grpc.CallOption) (*Valid, error) }
VerificationCodeClient is the client API for VerificationCode service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewVerificationCodeClient ¶
func NewVerificationCodeClient(cc *grpc.ClientConn) VerificationCodeClient
Click to show internal directories.
Click to hide internal directories.