grpc

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpc_hex_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Hex

type Hex struct {
	Q int64 `protobuf:"varint,1,opt,name=q,proto3" json:"q,omitempty"`
	R int64 `protobuf:"varint,2,opt,name=r,proto3" json:"r,omitempty"`
	// contains filtered or unexported fields
}

func (*Hex) Descriptor deprecated

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

Deprecated: Use Hex.ProtoReflect.Descriptor instead.

func (*Hex) GetQ

func (x *Hex) GetQ() int64

func (*Hex) GetR

func (x *Hex) GetR() int64

func (*Hex) ProtoMessage

func (*Hex) ProtoMessage()

func (*Hex) ProtoReflect

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

func (*Hex) Reset

func (x *Hex) Reset()

func (*Hex) String

func (x *Hex) String() string

func (*Hex) ToEntity added in v1.1.1

func (x *Hex) ToEntity() hex.Hex

ToEntity casts Hex to hex.Hex.

func (*Hex) Validate

func (m *Hex) Validate() error

Validate checks the field values on Hex with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type HexValidationError

type HexValidationError struct {
	// contains filtered or unexported fields
}

HexValidationError is the validation error returned by Hex.Validate if the designated constraints aren't met.

func (HexValidationError) Cause

func (e HexValidationError) Cause() error

Cause function returns cause value.

func (HexValidationError) Error

func (e HexValidationError) Error() string

Error satisfies the builtin error interface

func (HexValidationError) ErrorName

func (e HexValidationError) ErrorName() string

ErrorName returns error name.

func (HexValidationError) Field

func (e HexValidationError) Field() string

Field function returns field value.

func (HexValidationError) Key

func (e HexValidationError) Key() bool

Key function returns key value.

func (HexValidationError) Reason

func (e HexValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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