verification_srv

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func (*TokenData) GetToken

func (m *TokenData) GetToken() string

func (*TokenData) ProtoMessage

func (*TokenData) ProtoMessage()

func (*TokenData) Reset

func (m *TokenData) Reset()

func (*TokenData) String

func (m *TokenData) String() string

func (*TokenData) XXX_DiscardUnknown

func (m *TokenData) XXX_DiscardUnknown()

func (*TokenData) XXX_Marshal

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

func (*TokenData) XXX_Merge

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

func (*TokenData) XXX_Size

func (m *TokenData) XXX_Size() int

func (*TokenData) XXX_Unmarshal

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

type UnimplementedVerificationCodeServer

type UnimplementedVerificationCodeServer struct {
}

UnimplementedVerificationCodeServer can be embedded to have forward compatible implementations.

func (*UnimplementedVerificationCodeServer) Create

func (*UnimplementedVerificationCodeServer) Validate

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

func (*UserData) GetUserID

func (m *UserData) GetUserID() string

func (*UserData) ProtoMessage

func (*UserData) ProtoMessage()

func (*UserData) Reset

func (m *UserData) Reset()

func (*UserData) String

func (m *UserData) String() string

func (*UserData) XXX_DiscardUnknown

func (m *UserData) XXX_DiscardUnknown()

func (*UserData) XXX_Marshal

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

func (*UserData) XXX_Merge

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

func (*UserData) XXX_Size

func (m *UserData) XXX_Size() int

func (*UserData) XXX_Unmarshal

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

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

func (*Valid) GetUserID added in v0.0.17

func (m *Valid) GetUserID() string

func (*Valid) GetValid

func (m *Valid) GetValid() bool

func (*Valid) ProtoMessage

func (*Valid) ProtoMessage()

func (*Valid) Reset

func (m *Valid) Reset()

func (*Valid) String

func (m *Valid) String() string

func (*Valid) XXX_DiscardUnknown

func (m *Valid) XXX_DiscardUnknown()

func (*Valid) XXX_Marshal

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

func (*Valid) XXX_Merge

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

func (*Valid) XXX_Size

func (m *Valid) XXX_Size() int

func (*Valid) XXX_Unmarshal

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

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

type VerificationCodeServer

type VerificationCodeServer interface {
	Create(context.Context, *UserData) (*TokenData, error)
	Validate(context.Context, *TokenData) (*Valid, error)
}

VerificationCodeServer is the server API for VerificationCode service.

Jump to

Keyboard shortcuts

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