Documentation
¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
OTPCheckService.proto
It has these top-level messages:
CheckRequest CheckResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckRequest_OTPType_name = map[int32]string{
0: "TOTP",
}
View Source
var CheckRequest_OTPType_value = map[string]int32{
"TOTP": 0,
}
Functions ¶
func RegisterOTPCheckServer ¶
func RegisterOTPCheckServer(s *grpc.Server, srv OTPCheckServer)
Types ¶
type CheckRequest ¶
type CheckRequest struct {
Type CheckRequest_OTPType `protobuf:"varint,1,opt,name=type,enum=api.CheckRequest_OTPType" json:"type,omitempty"`
Login string `protobuf:"bytes,2,opt,name=login" json:"login,omitempty"`
Code string `protobuf:"bytes,3,opt,name=code" json:"code,omitempty"`
}
func (*CheckRequest) Descriptor ¶
func (*CheckRequest) Descriptor() ([]byte, []int)
func (*CheckRequest) GetCode ¶
func (m *CheckRequest) GetCode() string
func (*CheckRequest) GetLogin ¶
func (m *CheckRequest) GetLogin() string
func (*CheckRequest) GetType ¶
func (m *CheckRequest) GetType() CheckRequest_OTPType
func (*CheckRequest) ProtoMessage ¶
func (*CheckRequest) ProtoMessage()
func (*CheckRequest) Reset ¶
func (m *CheckRequest) Reset()
func (*CheckRequest) String ¶
func (m *CheckRequest) String() string
type CheckRequest_OTPType ¶
type CheckRequest_OTPType int32
const (
CheckRequest_TOTP CheckRequest_OTPType = 0
)
func (CheckRequest_OTPType) EnumDescriptor ¶
func (CheckRequest_OTPType) EnumDescriptor() ([]byte, []int)
func (CheckRequest_OTPType) String ¶
func (x CheckRequest_OTPType) String() string
type CheckResponse ¶
type CheckResponse struct {
}
func (*CheckResponse) Descriptor ¶
func (*CheckResponse) Descriptor() ([]byte, []int)
func (*CheckResponse) ProtoMessage ¶
func (*CheckResponse) ProtoMessage()
func (*CheckResponse) Reset ¶
func (m *CheckResponse) Reset()
func (*CheckResponse) String ¶
func (m *CheckResponse) String() string
type OTPCheckClient ¶
type OTPCheckClient interface {
Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
}
func NewOTPCheckClient ¶
func NewOTPCheckClient(cc *grpc.ClientConn) OTPCheckClient
type OTPCheckServer ¶
type OTPCheckServer interface {
Check(context.Context, *CheckRequest) (*CheckResponse, error)
}
Click to show internal directories.
Click to hide internal directories.