v1

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0, MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_v1_geolocation_proto protoreflect.FileDescriptor
View Source
var File_common_v1_pagination_proto protoreflect.FileDescriptor
View Source
var File_common_v1_rate_limit_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Geolocation

type Geolocation struct {
	Latitude  float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
	// contains filtered or unexported fields
}

func (*Geolocation) Descriptor deprecated

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

Deprecated: Use Geolocation.ProtoReflect.Descriptor instead.

func (*Geolocation) GetLatitude

func (x *Geolocation) GetLatitude() float64

func (*Geolocation) GetLongitude

func (x *Geolocation) GetLongitude() float64

func (*Geolocation) ProtoMessage

func (*Geolocation) ProtoMessage()

func (*Geolocation) ProtoReflect

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

func (*Geolocation) Reset

func (x *Geolocation) Reset()

func (*Geolocation) String

func (x *Geolocation) String() string

func (*Geolocation) Validate

func (m *Geolocation) Validate() error

Validate checks the field values on Geolocation with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Geolocation) ValidateAll

func (m *Geolocation) ValidateAll() error

ValidateAll checks the field values on Geolocation with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GeolocationMultiError, or nil if none found.

type GeolocationMultiError

type GeolocationMultiError []error

GeolocationMultiError is an error wrapping multiple validation errors returned by Geolocation.ValidateAll() if the designated constraints aren't met.

func (GeolocationMultiError) AllErrors

func (m GeolocationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GeolocationMultiError) Error

func (m GeolocationMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GeolocationValidationError

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

GeolocationValidationError is the validation error returned by Geolocation.Validate if the designated constraints aren't met.

func (GeolocationValidationError) Cause

Cause function returns cause value.

func (GeolocationValidationError) Error

Error satisfies the builtin error interface

func (GeolocationValidationError) ErrorName

func (e GeolocationValidationError) ErrorName() string

ErrorName returns error name.

func (GeolocationValidationError) Field

Field function returns field value.

func (GeolocationValidationError) Key

Key function returns key value.

func (GeolocationValidationError) Reason

Reason function returns reason value.

type Pagination added in v0.0.16

type Pagination struct {
	Offset *int64 `protobuf:"varint,1,opt,name=offset,proto3,oneof" json:"offset,omitempty"`
	Limit  *int64 `protobuf:"varint,2,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*Pagination) Descriptor deprecated added in v0.0.16

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

Deprecated: Use Pagination.ProtoReflect.Descriptor instead.

func (*Pagination) GetLimit added in v0.0.16

func (x *Pagination) GetLimit() int64

func (*Pagination) GetOffset added in v0.0.16

func (x *Pagination) GetOffset() int64

func (*Pagination) ProtoMessage added in v0.0.16

func (*Pagination) ProtoMessage()

func (*Pagination) ProtoReflect added in v0.0.16

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

func (*Pagination) Reset added in v0.0.16

func (x *Pagination) Reset()

func (*Pagination) String added in v0.0.16

func (x *Pagination) String() string

func (*Pagination) Validate added in v0.0.16

func (m *Pagination) Validate() error

Validate checks the field values on Pagination with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Pagination) ValidateAll added in v0.0.16

func (m *Pagination) ValidateAll() error

ValidateAll checks the field values on Pagination with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PaginationMultiError, or nil if none found.

type PaginationMultiError added in v0.0.16

type PaginationMultiError []error

PaginationMultiError is an error wrapping multiple validation errors returned by Pagination.ValidateAll() if the designated constraints aren't met.

func (PaginationMultiError) AllErrors added in v0.0.16

func (m PaginationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PaginationMultiError) Error added in v0.0.16

func (m PaginationMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PaginationValidationError added in v0.0.16

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

PaginationValidationError is the validation error returned by Pagination.Validate if the designated constraints aren't met.

func (PaginationValidationError) Cause added in v0.0.16

func (e PaginationValidationError) Cause() error

Cause function returns cause value.

func (PaginationValidationError) Error added in v0.0.16

Error satisfies the builtin error interface

func (PaginationValidationError) ErrorName added in v0.0.16

func (e PaginationValidationError) ErrorName() string

ErrorName returns error name.

func (PaginationValidationError) Field added in v0.0.16

Field function returns field value.

func (PaginationValidationError) Key added in v0.0.16

Key function returns key value.

func (PaginationValidationError) Reason added in v0.0.16

func (e PaginationValidationError) Reason() string

Reason function returns reason value.

type RateLimit added in v0.0.15

type RateLimit struct {
	MaxRequests int64                `protobuf:"varint,1,opt,name=max_requests,json=maxRequests,proto3" json:"max_requests,omitempty"`
	Interval    *durationpb.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"`
	// contains filtered or unexported fields
}

func (*RateLimit) Descriptor deprecated added in v0.0.15

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

Deprecated: Use RateLimit.ProtoReflect.Descriptor instead.

func (*RateLimit) GetInterval added in v0.0.15

func (x *RateLimit) GetInterval() *durationpb.Duration

func (*RateLimit) GetMaxRequests added in v0.0.15

func (x *RateLimit) GetMaxRequests() int64

func (*RateLimit) ProtoMessage added in v0.0.15

func (*RateLimit) ProtoMessage()

func (*RateLimit) ProtoReflect added in v0.0.15

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

func (*RateLimit) Reset added in v0.0.15

func (x *RateLimit) Reset()

func (*RateLimit) String added in v0.0.15

func (x *RateLimit) String() string

func (*RateLimit) Validate added in v0.0.15

func (m *RateLimit) Validate() error

Validate checks the field values on RateLimit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RateLimit) ValidateAll added in v0.0.15

func (m *RateLimit) ValidateAll() error

ValidateAll checks the field values on RateLimit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RateLimitMultiError, or nil if none found.

type RateLimitMultiError added in v0.0.15

type RateLimitMultiError []error

RateLimitMultiError is an error wrapping multiple validation errors returned by RateLimit.ValidateAll() if the designated constraints aren't met.

func (RateLimitMultiError) AllErrors added in v0.0.15

func (m RateLimitMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RateLimitMultiError) Error added in v0.0.15

func (m RateLimitMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RateLimitValidationError added in v0.0.15

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

RateLimitValidationError is the validation error returned by RateLimit.Validate if the designated constraints aren't met.

func (RateLimitValidationError) Cause added in v0.0.15

func (e RateLimitValidationError) Cause() error

Cause function returns cause value.

func (RateLimitValidationError) Error added in v0.0.15

func (e RateLimitValidationError) Error() string

Error satisfies the builtin error interface

func (RateLimitValidationError) ErrorName added in v0.0.15

func (e RateLimitValidationError) ErrorName() string

ErrorName returns error name.

func (RateLimitValidationError) Field added in v0.0.15

func (e RateLimitValidationError) Field() string

Field function returns field value.

func (RateLimitValidationError) Key added in v0.0.15

Key function returns key value.

func (RateLimitValidationError) Reason added in v0.0.15

func (e RateLimitValidationError) 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