proto

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 6 Imported by: 5

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

mfa.proto

It has these top-level messages:

MfaCreateDataRequest
MfaCreateDataResponse
MfaCheckDataRequest
MfaCheckDataResponse
Error

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMfaServiceHandler

func RegisterMfaServiceHandler(s server.Server, hdlr MfaServiceHandler, opts ...server.HandlerOption) error

Types

type Error

type Error struct {
	Message              string   `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Error) Descriptor

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

func (*Error) GetMessage

func (m *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

func (*Error) XXX_DiscardUnknown

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal

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

func (*Error) XXX_Merge

func (dst *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_Size

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal

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

type MfaCheckDataRequest

type MfaCheckDataRequest struct {
	ProviderID           string   `protobuf:"bytes,1,opt,name=ProviderID,proto3" json:"ProviderID,omitempty"`
	UserID               string   `protobuf:"bytes,2,opt,name=UserID,proto3" json:"UserID,omitempty"`
	Code                 string   `protobuf:"bytes,3,opt,name=Code,proto3" json:"Code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MfaCheckDataRequest) Descriptor

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

func (*MfaCheckDataRequest) GetCode

func (m *MfaCheckDataRequest) GetCode() string

func (*MfaCheckDataRequest) GetProviderID

func (m *MfaCheckDataRequest) GetProviderID() string

func (*MfaCheckDataRequest) GetUserID

func (m *MfaCheckDataRequest) GetUserID() string

func (*MfaCheckDataRequest) ProtoMessage

func (*MfaCheckDataRequest) ProtoMessage()

func (*MfaCheckDataRequest) Reset

func (m *MfaCheckDataRequest) Reset()

func (*MfaCheckDataRequest) String

func (m *MfaCheckDataRequest) String() string

func (*MfaCheckDataRequest) XXX_DiscardUnknown

func (m *MfaCheckDataRequest) XXX_DiscardUnknown()

func (*MfaCheckDataRequest) XXX_Marshal

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

func (*MfaCheckDataRequest) XXX_Merge

func (dst *MfaCheckDataRequest) XXX_Merge(src proto.Message)

func (*MfaCheckDataRequest) XXX_Size

func (m *MfaCheckDataRequest) XXX_Size() int

func (*MfaCheckDataRequest) XXX_Unmarshal

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

type MfaCheckDataResponse

type MfaCheckDataResponse struct {
	Result               bool     `protobuf:"varint,1,opt,name=Result,proto3" json:"Result,omitempty"`
	Error                *Error   `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MfaCheckDataResponse) Descriptor

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

func (*MfaCheckDataResponse) GetError

func (m *MfaCheckDataResponse) GetError() *Error

func (*MfaCheckDataResponse) GetResult

func (m *MfaCheckDataResponse) GetResult() bool

func (*MfaCheckDataResponse) ProtoMessage

func (*MfaCheckDataResponse) ProtoMessage()

func (*MfaCheckDataResponse) Reset

func (m *MfaCheckDataResponse) Reset()

func (*MfaCheckDataResponse) String

func (m *MfaCheckDataResponse) String() string

func (*MfaCheckDataResponse) XXX_DiscardUnknown

func (m *MfaCheckDataResponse) XXX_DiscardUnknown()

func (*MfaCheckDataResponse) XXX_Marshal

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

func (*MfaCheckDataResponse) XXX_Merge

func (dst *MfaCheckDataResponse) XXX_Merge(src proto.Message)

func (*MfaCheckDataResponse) XXX_Size

func (m *MfaCheckDataResponse) XXX_Size() int

func (*MfaCheckDataResponse) XXX_Unmarshal

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

type MfaCreateDataRequest

type MfaCreateDataRequest struct {
	UserID               string   `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
	ProviderID           string   `protobuf:"bytes,2,opt,name=ProviderID,proto3" json:"ProviderID,omitempty"`
	AppName              string   `protobuf:"bytes,3,opt,name=AppName,proto3" json:"AppName,omitempty"`
	Email                string   `protobuf:"bytes,4,opt,name=Email,proto3" json:"Email,omitempty"`
	QrSize               int32    `protobuf:"varint,5,opt,name=QrSize,proto3" json:"QrSize,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MfaCreateDataRequest) Descriptor

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

func (*MfaCreateDataRequest) GetAppName

func (m *MfaCreateDataRequest) GetAppName() string

func (*MfaCreateDataRequest) GetEmail

func (m *MfaCreateDataRequest) GetEmail() string

func (*MfaCreateDataRequest) GetProviderID

func (m *MfaCreateDataRequest) GetProviderID() string

func (*MfaCreateDataRequest) GetQrSize

func (m *MfaCreateDataRequest) GetQrSize() int32

func (*MfaCreateDataRequest) GetUserID

func (m *MfaCreateDataRequest) GetUserID() string

func (*MfaCreateDataRequest) ProtoMessage

func (*MfaCreateDataRequest) ProtoMessage()

func (*MfaCreateDataRequest) Reset

func (m *MfaCreateDataRequest) Reset()

func (*MfaCreateDataRequest) String

func (m *MfaCreateDataRequest) String() string

func (*MfaCreateDataRequest) XXX_DiscardUnknown

func (m *MfaCreateDataRequest) XXX_DiscardUnknown()

func (*MfaCreateDataRequest) XXX_Marshal

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

func (*MfaCreateDataRequest) XXX_Merge

func (dst *MfaCreateDataRequest) XXX_Merge(src proto.Message)

func (*MfaCreateDataRequest) XXX_Size

func (m *MfaCreateDataRequest) XXX_Size() int

func (*MfaCreateDataRequest) XXX_Unmarshal

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

type MfaCreateDataResponse

type MfaCreateDataResponse struct {
	SecretKey            string   `protobuf:"bytes,1,opt,name=SecretKey,proto3" json:"SecretKey,omitempty"`
	URL                  string   `protobuf:"bytes,2,opt,name=URL,proto3" json:"URL,omitempty"`
	QrCodeURL            string   `protobuf:"bytes,3,opt,name=QrCodeURL,proto3" json:"QrCodeURL,omitempty"`
	ImageBased           string   `protobuf:"bytes,4,opt,name=ImageBased,proto3" json:"ImageBased,omitempty"`
	RecoveryCode         []string `protobuf:"bytes,5,rep,name=RecoveryCode,proto3" json:"RecoveryCode,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MfaCreateDataResponse) Descriptor

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

func (*MfaCreateDataResponse) GetImageBased

func (m *MfaCreateDataResponse) GetImageBased() string

func (*MfaCreateDataResponse) GetQrCodeURL

func (m *MfaCreateDataResponse) GetQrCodeURL() string

func (*MfaCreateDataResponse) GetRecoveryCode

func (m *MfaCreateDataResponse) GetRecoveryCode() []string

func (*MfaCreateDataResponse) GetSecretKey

func (m *MfaCreateDataResponse) GetSecretKey() string

func (*MfaCreateDataResponse) GetURL

func (m *MfaCreateDataResponse) GetURL() string

func (*MfaCreateDataResponse) ProtoMessage

func (*MfaCreateDataResponse) ProtoMessage()

func (*MfaCreateDataResponse) Reset

func (m *MfaCreateDataResponse) Reset()

func (*MfaCreateDataResponse) String

func (m *MfaCreateDataResponse) String() string

func (*MfaCreateDataResponse) XXX_DiscardUnknown

func (m *MfaCreateDataResponse) XXX_DiscardUnknown()

func (*MfaCreateDataResponse) XXX_Marshal

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

func (*MfaCreateDataResponse) XXX_Merge

func (dst *MfaCreateDataResponse) XXX_Merge(src proto.Message)

func (*MfaCreateDataResponse) XXX_Size

func (m *MfaCreateDataResponse) XXX_Size() int

func (*MfaCreateDataResponse) XXX_Unmarshal

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

type MfaService

type MfaService interface {
	Create(ctx context.Context, in *MfaCreateDataRequest, opts ...client.CallOption) (*MfaCreateDataResponse, error)
	Check(ctx context.Context, in *MfaCheckDataRequest, opts ...client.CallOption) (*MfaCheckDataResponse, error)
}

func NewMfaService

func NewMfaService(name string, c client.Client) MfaService

Jump to

Keyboard shortcuts

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