protocol

package module
v0.0.0-...-52122e3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Request_RequestType_name = map[int32]string{
		0: "HASHPASSWORD",
		1: "VERIFYPASSWORD",
		2: "VERIFYPASSWORDANDREHASH",
	}
	Request_RequestType_value = map[string]int32{
		"HASHPASSWORD":            0,
		"VERIFYPASSWORD":          1,
		"VERIFYPASSWORDANDREHASH": 2,
	}
)

Enum value maps for Request_RequestType.

View Source
var File_gocrypt_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Request

type Request struct {
	RequestType     Request_RequestType `` /* 128-byte string literal not displayed */
	ResponseKey     string              `protobuf:"bytes,2,opt,name=response_key,json=responseKey,proto3" json:"response_key,omitempty"`
	Password        []byte              `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Hash            string              `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	Cost            int32               `protobuf:"varint,5,opt,name=cost,proto3" json:"cost,omitempty"`
	ExpiryTimestamp int64               `protobuf:"varint,6,opt,name=expiryTimestamp,proto3" json:"expiryTimestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetCost

func (x *Request) GetCost() int32

func (*Request) GetExpiryTimestamp

func (x *Request) GetExpiryTimestamp() int64

func (*Request) GetHash

func (x *Request) GetHash() string

func (*Request) GetPassword

func (x *Request) GetPassword() []byte

func (*Request) GetRequestType

func (x *Request) GetRequestType() Request_RequestType

func (*Request) GetResponseKey

func (x *Request) GetResponseKey() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Request_RequestType

type Request_RequestType int32
const (
	Request_HASHPASSWORD            Request_RequestType = 0
	Request_VERIFYPASSWORD          Request_RequestType = 1
	Request_VERIFYPASSWORDANDREHASH Request_RequestType = 2
)

func (Request_RequestType) Descriptor

func (Request_RequestType) Enum

func (Request_RequestType) EnumDescriptor deprecated

func (Request_RequestType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Request_RequestType.Descriptor instead.

func (Request_RequestType) Number

func (Request_RequestType) String

func (x Request_RequestType) String() string

func (Request_RequestType) Type

type Response

type Response struct {
	IsValid bool   `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"`
	Hash    string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetHash

func (x *Response) GetHash() string

func (*Response) GetIsValid

func (x *Response) GetIsValid() bool

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

Jump to

Keyboard shortcuts

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