sdk

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SORT_ORDER_name = map[int32]string{
		0: "ASCENDING_UNSPECIFIED",
		1: "DESCENDING",
	}
	SORT_ORDER_value = map[string]int32{
		"ASCENDING_UNSPECIFIED": 0,
		"DESCENDING":            1,
	}
)

Enum value maps for SORT_ORDER.

View Source
var (
	URL_SORT_KEY_name = map[int32]string{
		0:  "URL_SORT_KEY_ID_UNSPECIFIED",
		1:  "URL_SORT_KEY_CREATED_AT",
		2:  "URL_SORT_KEY_MODIFIED_AT",
		10: "URL_SORT_KEY_NAME",
		11: "URL_SORT_KEY_CODE",
		12: "URL_SORT_KEY_REDIRECTS_TO",
		13: "URL_SORT_KEY_EXPIRES_AT",
	}
	URL_SORT_KEY_value = map[string]int32{
		"URL_SORT_KEY_ID_UNSPECIFIED": 0,
		"URL_SORT_KEY_CREATED_AT":     1,
		"URL_SORT_KEY_MODIFIED_AT":    2,
		"URL_SORT_KEY_NAME":           10,
		"URL_SORT_KEY_CODE":           11,
		"URL_SORT_KEY_REDIRECTS_TO":   12,
		"URL_SORT_KEY_EXPIRES_AT":     13,
	}
)

Enum value maps for URL_SORT_KEY.

View Source
var File_base_9t90_proto protoreflect.FileDescriptor
View Source
var File_urls_9t90_proto protoreflect.FileDescriptor
View Source
var URLsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nineT90.URLsService",
	HandlerType: (*URLsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _URLsService_Create_Handler,
		},
		{
			MethodName: "Upsert",
			Handler:    _URLsService_Upsert_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _URLsService_Update_Handler,
		},
		{
			MethodName: "Archive",
			Handler:    _URLsService_Archive_Handler,
		},
		{
			MethodName: "Restore",
			Handler:    _URLsService_Restore_Handler,
		},
		{
			MethodName: "Purge",
			Handler:    _URLsService_Purge_Handler,
		},
		{
			MethodName: "ViewByUUID",
			Handler:    _URLsService_ViewByUUID_Handler,
		},
		{
			MethodName: "ViewByCode",
			Handler:    _URLsService_ViewByCode_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "urls_9t90.proto",
}

URLsService_ServiceDesc is the grpc.ServiceDesc for URLsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterURLsServiceServer

func RegisterURLsServiceServer(s grpc.ServiceRegistrar, srv URLsServiceServer)

Types

type BooleanResponse

type BooleanResponse struct {

	// Stores if the value is true or false
	Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Describes the boolean response

func (*BooleanResponse) Descriptor deprecated

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

Deprecated: Use BooleanResponse.ProtoReflect.Descriptor instead.

func (*BooleanResponse) GetValue

func (x *BooleanResponse) GetValue() bool

func (*BooleanResponse) ProtoMessage

func (*BooleanResponse) ProtoMessage()

func (*BooleanResponse) ProtoReflect

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

func (*BooleanResponse) Reset

func (x *BooleanResponse) Reset()

func (*BooleanResponse) String

func (x *BooleanResponse) String() string

func (*BooleanResponse) Validate

func (m *BooleanResponse) Validate() error

Validate checks the field values on BooleanResponse 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 (*BooleanResponse) ValidateAll

func (m *BooleanResponse) ValidateAll() error

ValidateAll checks the field values on BooleanResponse 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 BooleanResponseMultiError, or nil if none found.

type BooleanResponseMultiError

type BooleanResponseMultiError []error

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

func (BooleanResponseMultiError) AllErrors

func (m BooleanResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BooleanResponseMultiError) Error

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

type BooleanResponseValidationError

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

BooleanResponseValidationError is the validation error returned by BooleanResponse.Validate if the designated constraints aren't met.

func (BooleanResponseValidationError) Cause

Cause function returns cause value.

func (BooleanResponseValidationError) Error

Error satisfies the builtin error interface

func (BooleanResponseValidationError) ErrorName

func (e BooleanResponseValidationError) ErrorName() string

ErrorName returns error name.

func (BooleanResponseValidationError) Field

Field function returns field value.

func (BooleanResponseValidationError) Key

Key function returns key value.

func (BooleanResponseValidationError) Reason

Reason function returns reason value.

type CountRequest

type CountRequest struct {

	// Denotes if only active records need to be returned
	IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// contains filtered or unexported fields
}

Describes the payload for a request to determine the count of records

func (*CountRequest) Descriptor deprecated

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

Deprecated: Use CountRequest.ProtoReflect.Descriptor instead.

func (*CountRequest) GetIsActive

func (x *CountRequest) GetIsActive() bool

func (*CountRequest) ProtoMessage

func (*CountRequest) ProtoMessage()

func (*CountRequest) ProtoReflect

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

func (*CountRequest) Reset

func (x *CountRequest) Reset()

func (*CountRequest) String

func (x *CountRequest) String() string

func (*CountRequest) Validate

func (m *CountRequest) Validate() error

Validate checks the field values on CountRequest 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 (*CountRequest) ValidateAll

func (m *CountRequest) ValidateAll() error

ValidateAll checks the field values on CountRequest 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 CountRequestMultiError, or nil if none found.

type CountRequestMultiError

type CountRequestMultiError []error

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

func (CountRequestMultiError) AllErrors

func (m CountRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CountRequestMultiError) Error

func (m CountRequestMultiError) Error() string

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

type CountRequestValidationError

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

CountRequestValidationError is the validation error returned by CountRequest.Validate if the designated constraints aren't met.

func (CountRequestValidationError) Cause

Cause function returns cause value.

func (CountRequestValidationError) Error

Error satisfies the builtin error interface

func (CountRequestValidationError) ErrorName

func (e CountRequestValidationError) ErrorName() string

ErrorName returns error name.

func (CountRequestValidationError) Field

Field function returns field value.

func (CountRequestValidationError) Key

Key function returns key value.

func (CountRequestValidationError) Reason

Reason function returns reason value.

type CountResponse

type CountResponse struct {

	// The number of records
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

Describes the count response

func (*CountResponse) Descriptor deprecated

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

Deprecated: Use CountResponse.ProtoReflect.Descriptor instead.

func (*CountResponse) GetCount

func (x *CountResponse) GetCount() int64

func (*CountResponse) ProtoMessage

func (*CountResponse) ProtoMessage()

func (*CountResponse) ProtoReflect

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

func (*CountResponse) Reset

func (x *CountResponse) Reset()

func (*CountResponse) String

func (x *CountResponse) String() string

func (*CountResponse) Validate

func (m *CountResponse) Validate() error

Validate checks the field values on CountResponse 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 (*CountResponse) ValidateAll

func (m *CountResponse) ValidateAll() error

ValidateAll checks the field values on CountResponse 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 CountResponseMultiError, or nil if none found.

type CountResponseMultiError

type CountResponseMultiError []error

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

func (CountResponseMultiError) AllErrors

func (m CountResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CountResponseMultiError) Error

func (m CountResponseMultiError) Error() string

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

type CountResponseValidationError

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

CountResponseValidationError is the validation error returned by CountResponse.Validate if the designated constraints aren't met.

func (CountResponseValidationError) Cause

Cause function returns cause value.

func (CountResponseValidationError) Error

Error satisfies the builtin error interface

func (CountResponseValidationError) ErrorName

func (e CountResponseValidationError) ErrorName() string

ErrorName returns error name.

func (CountResponseValidationError) Field

Field function returns field value.

func (CountResponseValidationError) Key

Key function returns key value.

func (CountResponseValidationError) Reason

Reason function returns reason value.

type Empty

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

Describes an empty object

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

func (*Empty) Validate

func (m *Empty) Validate() error

Validate checks the field values on Empty 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 (*Empty) ValidateAll

func (m *Empty) ValidateAll() error

ValidateAll checks the field values on Empty 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 EmptyMultiError, or nil if none found.

type EmptyMultiError

type EmptyMultiError []error

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

func (EmptyMultiError) AllErrors

func (m EmptyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EmptyMultiError) Error

func (m EmptyMultiError) Error() string

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

type EmptyValidationError

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

EmptyValidationError is the validation error returned by Empty.Validate if the designated constraints aren't met.

func (EmptyValidationError) Cause

func (e EmptyValidationError) Cause() error

Cause function returns cause value.

func (EmptyValidationError) Error

func (e EmptyValidationError) Error() string

Error satisfies the builtin error interface

func (EmptyValidationError) ErrorName

func (e EmptyValidationError) ErrorName() string

ErrorName returns error name.

func (EmptyValidationError) Field

func (e EmptyValidationError) Field() string

Field function returns field value.

func (EmptyValidationError) Key

func (e EmptyValidationError) Key() bool

Key function returns key value.

func (EmptyValidationError) Reason

func (e EmptyValidationError) Reason() string

Reason function returns reason value.

type Identifier

type Identifier struct {

	// UUID of the resource
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

Describes the UUID identifier

func (*Identifier) Descriptor deprecated

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

Deprecated: Use Identifier.ProtoReflect.Descriptor instead.

func (*Identifier) GetUuid

func (x *Identifier) GetUuid() string

func (*Identifier) ProtoMessage

func (*Identifier) ProtoMessage()

func (*Identifier) ProtoReflect

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

func (*Identifier) Reset

func (x *Identifier) Reset()

func (*Identifier) String

func (x *Identifier) String() string

func (*Identifier) Validate

func (m *Identifier) Validate() error

Validate checks the field values on Identifier 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 (*Identifier) ValidateAll

func (m *Identifier) ValidateAll() error

ValidateAll checks the field values on Identifier 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 IdentifierMultiError, or nil if none found.

type IdentifierMultiError

type IdentifierMultiError []error

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

func (IdentifierMultiError) AllErrors

func (m IdentifierMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IdentifierMultiError) Error

func (m IdentifierMultiError) Error() string

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

type IdentifierValidationError

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

IdentifierValidationError is the validation error returned by Identifier.Validate if the designated constraints aren't met.

func (IdentifierValidationError) Cause

func (e IdentifierValidationError) Cause() error

Cause function returns cause value.

func (IdentifierValidationError) Error

Error satisfies the builtin error interface

func (IdentifierValidationError) ErrorName

func (e IdentifierValidationError) ErrorName() string

ErrorName returns error name.

func (IdentifierValidationError) Field

Field function returns field value.

func (IdentifierValidationError) Key

Key function returns key value.

func (IdentifierValidationError) Reason

func (e IdentifierValidationError) Reason() string

Reason function returns reason value.

type Metadata

type Metadata struct {

	// UUID of the resource
	Uuid string `protobuf:"bytes,5,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Represents if the resource is active
	IsActive bool `protobuf:"varint,7,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// Stores the timestamp of when the resource was created
	CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Stores the timestamp of when the resource was last modified
	ModifiedAt int64 `protobuf:"varint,9,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"`
	// contains filtered or unexported fields
}

Describes the metadata of each resource

func (*Metadata) Descriptor deprecated

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetCreatedAt

func (x *Metadata) GetCreatedAt() int64

func (*Metadata) GetIsActive

func (x *Metadata) GetIsActive() bool

func (*Metadata) GetModifiedAt

func (x *Metadata) GetModifiedAt() int64

func (*Metadata) GetUuid

func (x *Metadata) GetUuid() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

func (*Metadata) Validate

func (m *Metadata) Validate() error

Validate checks the field values on Metadata 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 (*Metadata) ValidateAll

func (m *Metadata) ValidateAll() error

ValidateAll checks the field values on Metadata 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 MetadataMultiError, or nil if none found.

type MetadataMultiError

type MetadataMultiError []error

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

func (MetadataMultiError) AllErrors

func (m MetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MetadataMultiError) Error

func (m MetadataMultiError) Error() string

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

type MetadataValidationError

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

MetadataValidationError is the validation error returned by Metadata.Validate if the designated constraints aren't met.

func (MetadataValidationError) Cause

func (e MetadataValidationError) Cause() error

Cause function returns cause value.

func (MetadataValidationError) Error

func (e MetadataValidationError) Error() string

Error satisfies the builtin error interface

func (MetadataValidationError) ErrorName

func (e MetadataValidationError) ErrorName() string

ErrorName returns error name.

func (MetadataValidationError) Field

func (e MetadataValidationError) Field() string

Field function returns field value.

func (MetadataValidationError) Key

func (e MetadataValidationError) Key() bool

Key function returns key value.

func (MetadataValidationError) Reason

func (e MetadataValidationError) Reason() string

Reason function returns reason value.

type SORT_ORDER

type SORT_ORDER int32

Describes the order in which the records need to be returned

const (
	// Fetch results in the ascending order of the provided sort key
	SORT_ORDER_ASCENDING_UNSPECIFIED SORT_ORDER = 0
	// Fetch results in the descending order of the provided sort key
	SORT_ORDER_DESCENDING SORT_ORDER = 1
)

func (SORT_ORDER) Descriptor

func (SORT_ORDER) Descriptor() protoreflect.EnumDescriptor

func (SORT_ORDER) Enum

func (x SORT_ORDER) Enum() *SORT_ORDER

func (SORT_ORDER) EnumDescriptor deprecated

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

Deprecated: Use SORT_ORDER.Descriptor instead.

func (SORT_ORDER) Number

func (x SORT_ORDER) Number() protoreflect.EnumNumber

func (SORT_ORDER) String

func (x SORT_ORDER) String() string

func (SORT_ORDER) Type

type SearchKeyRequest

type SearchKeyRequest struct {

	// The search key
	SearchKey string `protobuf:"bytes,1,opt,name=search_key,json=searchKey,proto3" json:"search_key,omitempty"`
	// contains filtered or unexported fields
}

Describes a simple search key request

func (*SearchKeyRequest) Descriptor deprecated

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

Deprecated: Use SearchKeyRequest.ProtoReflect.Descriptor instead.

func (*SearchKeyRequest) GetSearchKey

func (x *SearchKeyRequest) GetSearchKey() string

func (*SearchKeyRequest) ProtoMessage

func (*SearchKeyRequest) ProtoMessage()

func (*SearchKeyRequest) ProtoReflect

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

func (*SearchKeyRequest) Reset

func (x *SearchKeyRequest) Reset()

func (*SearchKeyRequest) String

func (x *SearchKeyRequest) String() string

func (*SearchKeyRequest) Validate

func (m *SearchKeyRequest) Validate() error

Validate checks the field values on SearchKeyRequest 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 (*SearchKeyRequest) ValidateAll

func (m *SearchKeyRequest) ValidateAll() error

ValidateAll checks the field values on SearchKeyRequest 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 SearchKeyRequestMultiError, or nil if none found.

type SearchKeyRequestMultiError

type SearchKeyRequestMultiError []error

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

func (SearchKeyRequestMultiError) AllErrors

func (m SearchKeyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchKeyRequestMultiError) Error

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

type SearchKeyRequestValidationError

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

SearchKeyRequestValidationError is the validation error returned by SearchKeyRequest.Validate if the designated constraints aren't met.

func (SearchKeyRequestValidationError) Cause

Cause function returns cause value.

func (SearchKeyRequestValidationError) Error

Error satisfies the builtin error interface

func (SearchKeyRequestValidationError) ErrorName

ErrorName returns error name.

func (SearchKeyRequestValidationError) Field

Field function returns field value.

func (SearchKeyRequestValidationError) Key

Key function returns key value.

func (SearchKeyRequestValidationError) Reason

Reason function returns reason value.

type URL

type URL struct {

	// Stores the metadata of this resource
	Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Stores the short URL that can be used to access this resource
	ShortUrl string `protobuf:"bytes,2,opt,name=short_url,json=shortUrl,proto3" json:"short_url,omitempty"`
	// The optional name of the url
	Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
	// The optional description of the url
	Description string `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"`
	// The code, which serves as the endpoint
	Code string `protobuf:"bytes,12,opt,name=code,proto3" json:"code,omitempty"`
	// The redirection URL
	RedirectsTo string `protobuf:"bytes,13,opt,name=redirects_to,json=redirectsTo,proto3" json:"redirects_to,omitempty"`
	// Stores the UNIX timestamp of when this rule expires (0 denotes that the rule never expires)
	ExpiresAt int64 `protobuf:"varint,14,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

Describes the data structure of each url on the platform

func (*URL) Descriptor deprecated

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

Deprecated: Use URL.ProtoReflect.Descriptor instead.

func (*URL) GetCode

func (x *URL) GetCode() string

func (*URL) GetDescription

func (x *URL) GetDescription() string

func (*URL) GetExpiresAt

func (x *URL) GetExpiresAt() int64

func (*URL) GetMetadata

func (x *URL) GetMetadata() *Metadata

func (*URL) GetName

func (x *URL) GetName() string

func (*URL) GetRedirectsTo

func (x *URL) GetRedirectsTo() string

func (*URL) GetShortUrl

func (x *URL) GetShortUrl() string

func (*URL) ProtoMessage

func (*URL) ProtoMessage()

func (*URL) ProtoReflect

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

func (*URL) Reset

func (x *URL) Reset()

func (*URL) String

func (x *URL) String() string

func (*URL) Validate

func (m *URL) Validate() error

Validate checks the field values on URL 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 (*URL) ValidateAll

func (m *URL) ValidateAll() error

ValidateAll checks the field values on URL 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 URLMultiError, or nil if none found.

type URLMultiError

type URLMultiError []error

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

func (URLMultiError) AllErrors

func (m URLMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (URLMultiError) Error

func (m URLMultiError) Error() string

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

type URLPaginationResp

type URLPaginationResp struct {

	// The number of records in this payload
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// The total number of records that are available
	Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// The list of records
	Payload []*URL `protobuf:"bytes,3,rep,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

Describes the data structure that responds to a pagination request

func (*URLPaginationResp) Descriptor deprecated

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

Deprecated: Use URLPaginationResp.ProtoReflect.Descriptor instead.

func (*URLPaginationResp) GetCount

func (x *URLPaginationResp) GetCount() int64

func (*URLPaginationResp) GetPayload

func (x *URLPaginationResp) GetPayload() []*URL

func (*URLPaginationResp) GetTotal

func (x *URLPaginationResp) GetTotal() int64

func (*URLPaginationResp) ProtoMessage

func (*URLPaginationResp) ProtoMessage()

func (*URLPaginationResp) ProtoReflect

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

func (*URLPaginationResp) Reset

func (x *URLPaginationResp) Reset()

func (*URLPaginationResp) String

func (x *URLPaginationResp) String() string

func (*URLPaginationResp) Validate

func (m *URLPaginationResp) Validate() error

Validate checks the field values on URLPaginationResp 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 (*URLPaginationResp) ValidateAll

func (m *URLPaginationResp) ValidateAll() error

ValidateAll checks the field values on URLPaginationResp 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 URLPaginationRespMultiError, or nil if none found.

type URLPaginationRespMultiError

type URLPaginationRespMultiError []error

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

func (URLPaginationRespMultiError) AllErrors

func (m URLPaginationRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (URLPaginationRespMultiError) Error

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

type URLPaginationRespValidationError

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

URLPaginationRespValidationError is the validation error returned by URLPaginationResp.Validate if the designated constraints aren't met.

func (URLPaginationRespValidationError) Cause

Cause function returns cause value.

func (URLPaginationRespValidationError) Error

Error satisfies the builtin error interface

func (URLPaginationRespValidationError) ErrorName

ErrorName returns error name.

func (URLPaginationRespValidationError) Field

Field function returns field value.

func (URLPaginationRespValidationError) Key

Key function returns key value.

func (URLPaginationRespValidationError) Reason

Reason function returns reason value.

type URLResponse

type URLResponse struct {

	// The URL
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

Describes the URL response

func (*URLResponse) Descriptor deprecated

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

Deprecated: Use URLResponse.ProtoReflect.Descriptor instead.

func (*URLResponse) GetUrl

func (x *URLResponse) GetUrl() string

func (*URLResponse) ProtoMessage

func (*URLResponse) ProtoMessage()

func (*URLResponse) ProtoReflect

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

func (*URLResponse) Reset

func (x *URLResponse) Reset()

func (*URLResponse) String

func (x *URLResponse) String() string

func (*URLResponse) Validate

func (m *URLResponse) Validate() error

Validate checks the field values on URLResponse 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 (*URLResponse) ValidateAll

func (m *URLResponse) ValidateAll() error

ValidateAll checks the field values on URLResponse 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 URLResponseMultiError, or nil if none found.

type URLResponseMultiError

type URLResponseMultiError []error

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

func (URLResponseMultiError) AllErrors

func (m URLResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (URLResponseMultiError) Error

func (m URLResponseMultiError) Error() string

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

type URLResponseValidationError

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

URLResponseValidationError is the validation error returned by URLResponse.Validate if the designated constraints aren't met.

func (URLResponseValidationError) Cause

Cause function returns cause value.

func (URLResponseValidationError) Error

Error satisfies the builtin error interface

func (URLResponseValidationError) ErrorName

func (e URLResponseValidationError) ErrorName() string

ErrorName returns error name.

func (URLResponseValidationError) Field

Field function returns field value.

func (URLResponseValidationError) Key

Key function returns key value.

func (URLResponseValidationError) Reason

Reason function returns reason value.

type URLValidationError

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

URLValidationError is the validation error returned by URL.Validate if the designated constraints aren't met.

func (URLValidationError) Cause

func (e URLValidationError) Cause() error

Cause function returns cause value.

func (URLValidationError) Error

func (e URLValidationError) Error() string

Error satisfies the builtin error interface

func (URLValidationError) ErrorName

func (e URLValidationError) ErrorName() string

ErrorName returns error name.

func (URLValidationError) Field

func (e URLValidationError) Field() string

Field function returns field value.

func (URLValidationError) Key

func (e URLValidationError) Key() bool

Key function returns key value.

func (URLValidationError) Reason

func (e URLValidationError) Reason() string

Reason function returns reason value.

type URL_SORT_KEY

type URL_SORT_KEY int32

Describes the available sort keys for retrieving urls

const (
	// Fetch ordered results by id
	URL_SORT_KEY_URL_SORT_KEY_ID_UNSPECIFIED URL_SORT_KEY = 0
	// Fetch ordered results by the creation timestamp
	URL_SORT_KEY_URL_SORT_KEY_CREATED_AT URL_SORT_KEY = 1
	// Fetch ordered results by the modified timestamp
	URL_SORT_KEY_URL_SORT_KEY_MODIFIED_AT URL_SORT_KEY = 2
	// Fetch ordered results by name
	URL_SORT_KEY_URL_SORT_KEY_NAME URL_SORT_KEY = 10
	// Fetch ordered results by code
	URL_SORT_KEY_URL_SORT_KEY_CODE URL_SORT_KEY = 11
	// Fetch ordered results by redirection endpoint
	URL_SORT_KEY_URL_SORT_KEY_REDIRECTS_TO URL_SORT_KEY = 12
	// Fetch ordered results by expiration timestamp
	URL_SORT_KEY_URL_SORT_KEY_EXPIRES_AT URL_SORT_KEY = 13
)

func (URL_SORT_KEY) Descriptor

func (URL_SORT_KEY) Enum

func (x URL_SORT_KEY) Enum() *URL_SORT_KEY

func (URL_SORT_KEY) EnumDescriptor deprecated

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

Deprecated: Use URL_SORT_KEY.Descriptor instead.

func (URL_SORT_KEY) Number

func (URL_SORT_KEY) String

func (x URL_SORT_KEY) String() string

func (URL_SORT_KEY) Type

type URLsList

type URLsList struct {

	// List of urls
	List []*URL `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

Describes the data structure that stores a list of urls

func (*URLsList) Descriptor deprecated

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

Deprecated: Use URLsList.ProtoReflect.Descriptor instead.

func (*URLsList) GetList

func (x *URLsList) GetList() []*URL

func (*URLsList) ProtoMessage

func (*URLsList) ProtoMessage()

func (*URLsList) ProtoReflect

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

func (*URLsList) Reset

func (x *URLsList) Reset()

func (*URLsList) String

func (x *URLsList) String() string

func (*URLsList) Validate

func (m *URLsList) Validate() error

Validate checks the field values on URLsList 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 (*URLsList) ValidateAll

func (m *URLsList) ValidateAll() error

ValidateAll checks the field values on URLsList 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 URLsListMultiError, or nil if none found.

type URLsListMultiError

type URLsListMultiError []error

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

func (URLsListMultiError) AllErrors

func (m URLsListMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (URLsListMultiError) Error

func (m URLsListMultiError) Error() string

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

type URLsListValidationError

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

URLsListValidationError is the validation error returned by URLsList.Validate if the designated constraints aren't met.

func (URLsListValidationError) Cause

func (e URLsListValidationError) Cause() error

Cause function returns cause value.

func (URLsListValidationError) Error

func (e URLsListValidationError) Error() string

Error satisfies the builtin error interface

func (URLsListValidationError) ErrorName

func (e URLsListValidationError) ErrorName() string

ErrorName returns error name.

func (URLsListValidationError) Field

func (e URLsListValidationError) Field() string

Field function returns field value.

func (URLsListValidationError) Key

func (e URLsListValidationError) Key() bool

Key function returns key value.

func (URLsListValidationError) Reason

func (e URLsListValidationError) Reason() string

Reason function returns reason value.

type URLsServiceClient

type URLsServiceClient interface {
	// Create a url
	Create(ctx context.Context, in *URLsServiceCreateRequest, opts ...grpc.CallOption) (*URL, error)
	// Upsert a url (create if does not exist, update if it already exists)
	Upsert(ctx context.Context, in *URLsServiceCreateRequest, opts ...grpc.CallOption) (*URL, error)
	// Update a url
	Update(ctx context.Context, in *URLsServiceUpdateRequest, opts ...grpc.CallOption) (*URL, error)
	// Archive the url
	Archive(ctx context.Context, in *Identifier, opts ...grpc.CallOption) (*Identifier, error)
	// Restore the url
	Restore(ctx context.Context, in *Identifier, opts ...grpc.CallOption) (*Identifier, error)
	// Purge the url
	Purge(ctx context.Context, in *Identifier, opts ...grpc.CallOption) (*Identifier, error)
	// View by UUID
	ViewByUUID(ctx context.Context, in *Identifier, opts ...grpc.CallOption) (*URL, error)
	// View by Code
	ViewByCode(ctx context.Context, in *SearchKeyRequest, opts ...grpc.CallOption) (*URL, error)
}

URLsServiceClient is the client API for URLsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type URLsServiceCreateRequest

type URLsServiceCreateRequest struct {

	// The optional name of the url
	Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
	// The optional description of the url
	Description string `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"`
	// The redirection URL
	RedirectsTo string `protobuf:"bytes,13,opt,name=redirects_to,json=redirectsTo,proto3" json:"redirects_to,omitempty"`
	// Stores the UNIX timestamp of when this rule expires (0 denotes that the rule never expires)
	ExpiresAt int64 `protobuf:"varint,14,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

Describes the data structure to create a url

func (*URLsServiceCreateRequest) Descriptor deprecated

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

Deprecated: Use URLsServiceCreateRequest.ProtoReflect.Descriptor instead.

func (*URLsServiceCreateRequest) GetDescription

func (x *URLsServiceCreateRequest) GetDescription() string

func (*URLsServiceCreateRequest) GetExpiresAt

func (x *URLsServiceCreateRequest) GetExpiresAt() int64

func (*URLsServiceCreateRequest) GetName

func (x *URLsServiceCreateRequest) GetName() string

func (*URLsServiceCreateRequest) GetRedirectsTo

func (x *URLsServiceCreateRequest) GetRedirectsTo() string

func (*URLsServiceCreateRequest) ProtoMessage

func (*URLsServiceCreateRequest) ProtoMessage()

func (*URLsServiceCreateRequest) ProtoReflect

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

func (*URLsServiceCreateRequest) Reset

func (x *URLsServiceCreateRequest) Reset()

func (*URLsServiceCreateRequest) String

func (x *URLsServiceCreateRequest) String() string

func (*URLsServiceCreateRequest) Validate

func (m *URLsServiceCreateRequest) Validate() error

Validate checks the field values on URLsServiceCreateRequest 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 (*URLsServiceCreateRequest) ValidateAll

func (m *URLsServiceCreateRequest) ValidateAll() error

ValidateAll checks the field values on URLsServiceCreateRequest 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 URLsServiceCreateRequestMultiError, or nil if none found.

type URLsServiceCreateRequestMultiError

type URLsServiceCreateRequestMultiError []error

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

func (URLsServiceCreateRequestMultiError) AllErrors

func (m URLsServiceCreateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (URLsServiceCreateRequestMultiError) Error

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

type URLsServiceCreateRequestValidationError

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

URLsServiceCreateRequestValidationError is the validation error returned by URLsServiceCreateRequest.Validate if the designated constraints aren't met.

func (URLsServiceCreateRequestValidationError) Cause

Cause function returns cause value.

func (URLsServiceCreateRequestValidationError) Error

Error satisfies the builtin error interface

func (URLsServiceCreateRequestValidationError) ErrorName

ErrorName returns error name.

func (URLsServiceCreateRequestValidationError) Field

Field function returns field value.

func (URLsServiceCreateRequestValidationError) Key

Key function returns key value.

func (URLsServiceCreateRequestValidationError) Reason

Reason function returns reason value.

type URLsServiceFilterReq

type URLsServiceFilterReq struct {

	// If true, then returns only active records. If false, then returns only inactive records
	IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// The number of records that need to be sent in the response. Returns all records if it is set to -1
	Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// The number that need to be offset by before fetching the records
	Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// The sort order that is to be used to fetch the pagination response
	SortOrder SORT_ORDER `protobuf:"varint,4,opt,name=sort_order,json=sortOrder,proto3,enum=nineT90.SORT_ORDER" json:"sort_order,omitempty"`
	// The sort key that is to be used to fetch the pagination response
	SortKey URL_SORT_KEY `protobuf:"varint,5,opt,name=sort_key,json=sortKey,proto3,enum=nineT90.URL_SORT_KEY" json:"sort_key,omitempty"`
	// The minimum timestamp that needs to be considered to filter by creation
	CreationTimestampStart int64 `` /* 130-byte string literal not displayed */
	// The maximum timestamp that needs to be considered to filter by creation
	CreationTimestampEnd int64 `protobuf:"varint,7,opt,name=creation_timestamp_end,json=creationTimestampEnd,proto3" json:"creation_timestamp_end,omitempty"`
	// The name of the url
	Name string `protobuf:"bytes,20,opt,name=name,proto3" json:"name,omitempty"`
	// Code of the url
	Code string `protobuf:"bytes,21,opt,name=code,proto3" json:"code,omitempty"`
	// Redirection endpoint
	RedirectsTo string `protobuf:"bytes,22,opt,name=redirects_to,json=redirectsTo,proto3" json:"redirects_to,omitempty"`
	// contains filtered or unexported fields
}

Describes the base request payload of a filter search

func (*URLsServiceFilterReq) Descriptor deprecated

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

Deprecated: Use URLsServiceFilterReq.ProtoReflect.Descriptor instead.

func (*URLsServiceFilterReq) GetCode

func (x *URLsServiceFilterReq) GetCode() string

func (*URLsServiceFilterReq) GetCount

func (x *URLsServiceFilterReq) GetCount() int64

func (*URLsServiceFilterReq) GetCreationTimestampEnd

func (x *URLsServiceFilterReq) GetCreationTimestampEnd() int64

func (*URLsServiceFilterReq) GetCreationTimestampStart

func (x *URLsServiceFilterReq) GetCreationTimestampStart() int64

func (*URLsServiceFilterReq) GetIsActive

func (x *URLsServiceFilterReq) GetIsActive() bool

func (*URLsServiceFilterReq) GetName

func (x *URLsServiceFilterReq) GetName() string

func (*URLsServiceFilterReq) GetOffset

func (x *URLsServiceFilterReq) GetOffset() int64

func (*URLsServiceFilterReq) GetRedirectsTo

func (x *URLsServiceFilterReq) GetRedirectsTo() string

func (*URLsServiceFilterReq) GetSortKey

func (x *URLsServiceFilterReq) GetSortKey() URL_SORT_KEY

func (*URLsServiceFilterReq) GetSortOrder

func (x *URLsServiceFilterReq) GetSortOrder() SORT_ORDER

func (*URLsServiceFilterReq) ProtoMessage

func (*URLsServiceFilterReq) ProtoMessage()

func (*URLsServiceFilterReq) ProtoReflect

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

func (*URLsServiceFilterReq) Reset

func (x *URLsServiceFilterReq) Reset()

func (*URLsServiceFilterReq) String

func (x *URLsServiceFilterReq) String() string

func (*URLsServiceFilterReq) Validate

func (m *URLsServiceFilterReq) Validate() error

Validate checks the field values on URLsServiceFilterReq 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 (*URLsServiceFilterReq) ValidateAll

func (m *URLsServiceFilterReq) ValidateAll() error

ValidateAll checks the field values on URLsServiceFilterReq 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 URLsServiceFilterReqMultiError, or nil if none found.

type URLsServiceFilterReqMultiError

type URLsServiceFilterReqMultiError []error

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

func (URLsServiceFilterReqMultiError) AllErrors

func (m URLsServiceFilterReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (URLsServiceFilterReqMultiError) Error

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

type URLsServiceFilterReqValidationError

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

URLsServiceFilterReqValidationError is the validation error returned by URLsServiceFilterReq.Validate if the designated constraints aren't met.

func (URLsServiceFilterReqValidationError) Cause

Cause function returns cause value.

func (URLsServiceFilterReqValidationError) Error

Error satisfies the builtin error interface

func (URLsServiceFilterReqValidationError) ErrorName

ErrorName returns error name.

func (URLsServiceFilterReqValidationError) Field

Field function returns field value.

func (URLsServiceFilterReqValidationError) Key

Key function returns key value.

func (URLsServiceFilterReqValidationError) Reason

Reason function returns reason value.

type URLsServicePaginationReq

type URLsServicePaginationReq struct {

	// If true, then returns only active records. If false, then returns only inactive records
	IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// The number of records that need to be sent in the response
	Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// The number that need to be offset by before fetching the records
	Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// The sort order that is to be used to fetch the pagination response
	SortOrder SORT_ORDER `protobuf:"varint,4,opt,name=sort_order,json=sortOrder,proto3,enum=nineT90.SORT_ORDER" json:"sort_order,omitempty"`
	// The sort key that is to be used to fetch the pagination response
	SortKey URL_SORT_KEY `protobuf:"varint,5,opt,name=sort_key,json=sortKey,proto3,enum=nineT90.URL_SORT_KEY" json:"sort_key,omitempty"`
	// contains filtered or unexported fields
}

Describes a pagination request to retrieve records

func (*URLsServicePaginationReq) Descriptor deprecated

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

Deprecated: Use URLsServicePaginationReq.ProtoReflect.Descriptor instead.

func (*URLsServicePaginationReq) GetCount

func (x *URLsServicePaginationReq) GetCount() int64

func (*URLsServicePaginationReq) GetIsActive

func (x *URLsServicePaginationReq) GetIsActive() bool

func (*URLsServicePaginationReq) GetOffset

func (x *URLsServicePaginationReq) GetOffset() int64

func (*URLsServicePaginationReq) GetSortKey

func (x *URLsServicePaginationReq) GetSortKey() URL_SORT_KEY

func (*URLsServicePaginationReq) GetSortOrder

func (x *URLsServicePaginationReq) GetSortOrder() SORT_ORDER

func (*URLsServicePaginationReq) ProtoMessage

func (*URLsServicePaginationReq) ProtoMessage()

func (*URLsServicePaginationReq) ProtoReflect

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

func (*URLsServicePaginationReq) Reset

func (x *URLsServicePaginationReq) Reset()

func (*URLsServicePaginationReq) String

func (x *URLsServicePaginationReq) String() string

func (*URLsServicePaginationReq) Validate

func (m *URLsServicePaginationReq) Validate() error

Validate checks the field values on URLsServicePaginationReq 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 (*URLsServicePaginationReq) ValidateAll

func (m *URLsServicePaginationReq) ValidateAll() error

ValidateAll checks the field values on URLsServicePaginationReq 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 URLsServicePaginationReqMultiError, or nil if none found.

type URLsServicePaginationReqMultiError

type URLsServicePaginationReqMultiError []error

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

func (URLsServicePaginationReqMultiError) AllErrors

func (m URLsServicePaginationReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (URLsServicePaginationReqMultiError) Error

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

type URLsServicePaginationReqValidationError

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

URLsServicePaginationReqValidationError is the validation error returned by URLsServicePaginationReq.Validate if the designated constraints aren't met.

func (URLsServicePaginationReqValidationError) Cause

Cause function returns cause value.

func (URLsServicePaginationReqValidationError) Error

Error satisfies the builtin error interface

func (URLsServicePaginationReqValidationError) ErrorName

ErrorName returns error name.

func (URLsServicePaginationReqValidationError) Field

Field function returns field value.

func (URLsServicePaginationReqValidationError) Key

Key function returns key value.

func (URLsServicePaginationReqValidationError) Reason

Reason function returns reason value.

type URLsServiceSearchAllReq

type URLsServiceSearchAllReq struct {

	// If true, then returns only active records. If false, then returns only inactive records
	IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// The number of records that need to be sent in the response. Returns all records if it is set to -1
	Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// The number that need to be offset by before fetching the records
	Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// The sort order that is to be used to fetch the pagination response
	SortOrder SORT_ORDER `protobuf:"varint,4,opt,name=sort_order,json=sortOrder,proto3,enum=nineT90.SORT_ORDER" json:"sort_order,omitempty"`
	// The sort key that is to be used to fetch the pagination response
	SortKey URL_SORT_KEY `protobuf:"varint,5,opt,name=sort_key,json=sortKey,proto3,enum=nineT90.URL_SORT_KEY" json:"sort_key,omitempty"`
	// Describes the key with which the search operation needs to be performed
	SearchKey string `protobuf:"bytes,11,opt,name=search_key,json=searchKey,proto3" json:"search_key,omitempty"`
	// contains filtered or unexported fields
}

Describes the request payload for performing a generic search operation on records

func (*URLsServiceSearchAllReq) Descriptor deprecated

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

Deprecated: Use URLsServiceSearchAllReq.ProtoReflect.Descriptor instead.

func (*URLsServiceSearchAllReq) GetCount

func (x *URLsServiceSearchAllReq) GetCount() int64

func (*URLsServiceSearchAllReq) GetIsActive

func (x *URLsServiceSearchAllReq) GetIsActive() bool

func (*URLsServiceSearchAllReq) GetOffset

func (x *URLsServiceSearchAllReq) GetOffset() int64

func (*URLsServiceSearchAllReq) GetSearchKey

func (x *URLsServiceSearchAllReq) GetSearchKey() string

func (*URLsServiceSearchAllReq) GetSortKey

func (x *URLsServiceSearchAllReq) GetSortKey() URL_SORT_KEY

func (*URLsServiceSearchAllReq) GetSortOrder

func (x *URLsServiceSearchAllReq) GetSortOrder() SORT_ORDER

func (*URLsServiceSearchAllReq) ProtoMessage

func (*URLsServiceSearchAllReq) ProtoMessage()

func (*URLsServiceSearchAllReq) ProtoReflect

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

func (*URLsServiceSearchAllReq) Reset

func (x *URLsServiceSearchAllReq) Reset()

func (*URLsServiceSearchAllReq) String

func (x *URLsServiceSearchAllReq) String() string

func (*URLsServiceSearchAllReq) Validate

func (m *URLsServiceSearchAllReq) Validate() error

Validate checks the field values on URLsServiceSearchAllReq 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 (*URLsServiceSearchAllReq) ValidateAll

func (m *URLsServiceSearchAllReq) ValidateAll() error

ValidateAll checks the field values on URLsServiceSearchAllReq 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 URLsServiceSearchAllReqMultiError, or nil if none found.

type URLsServiceSearchAllReqMultiError

type URLsServiceSearchAllReqMultiError []error

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

func (URLsServiceSearchAllReqMultiError) AllErrors

func (m URLsServiceSearchAllReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (URLsServiceSearchAllReqMultiError) Error

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

type URLsServiceSearchAllReqValidationError

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

URLsServiceSearchAllReqValidationError is the validation error returned by URLsServiceSearchAllReq.Validate if the designated constraints aren't met.

func (URLsServiceSearchAllReqValidationError) Cause

Cause function returns cause value.

func (URLsServiceSearchAllReqValidationError) Error

Error satisfies the builtin error interface

func (URLsServiceSearchAllReqValidationError) ErrorName

ErrorName returns error name.

func (URLsServiceSearchAllReqValidationError) Field

Field function returns field value.

func (URLsServiceSearchAllReqValidationError) Key

Key function returns key value.

func (URLsServiceSearchAllReqValidationError) Reason

Reason function returns reason value.

type URLsServiceServer

type URLsServiceServer interface {
	// Create a url
	Create(context.Context, *URLsServiceCreateRequest) (*URL, error)
	// Upsert a url (create if does not exist, update if it already exists)
	Upsert(context.Context, *URLsServiceCreateRequest) (*URL, error)
	// Update a url
	Update(context.Context, *URLsServiceUpdateRequest) (*URL, error)
	// Archive the url
	Archive(context.Context, *Identifier) (*Identifier, error)
	// Restore the url
	Restore(context.Context, *Identifier) (*Identifier, error)
	// Purge the url
	Purge(context.Context, *Identifier) (*Identifier, error)
	// View by UUID
	ViewByUUID(context.Context, *Identifier) (*URL, error)
	// View by Code
	ViewByCode(context.Context, *SearchKeyRequest) (*URL, error)
	// contains filtered or unexported methods
}

URLsServiceServer is the server API for URLsService service. All implementations must embed UnimplementedURLsServiceServer for forward compatibility

type URLsServiceUpdateRequest

type URLsServiceUpdateRequest struct {

	// The UUID of the resource that needs to be updated
	Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// The optional name of the url
	Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
	// The optional description of the url
	Description string `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"`
	// The redirection URL
	RedirectsTo string `protobuf:"bytes,13,opt,name=redirects_to,json=redirectsTo,proto3" json:"redirects_to,omitempty"`
	// Stores the UNIX timestamp of when this rule expires (0 denotes that the rule never expires)
	ExpiresAt int64 `protobuf:"varint,14,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

Describes the data structure to perform the update (draft/revision) operation on a url

func (*URLsServiceUpdateRequest) Descriptor deprecated

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

Deprecated: Use URLsServiceUpdateRequest.ProtoReflect.Descriptor instead.

func (*URLsServiceUpdateRequest) GetDescription

func (x *URLsServiceUpdateRequest) GetDescription() string

func (*URLsServiceUpdateRequest) GetExpiresAt

func (x *URLsServiceUpdateRequest) GetExpiresAt() int64

func (*URLsServiceUpdateRequest) GetName

func (x *URLsServiceUpdateRequest) GetName() string

func (*URLsServiceUpdateRequest) GetRedirectsTo

func (x *URLsServiceUpdateRequest) GetRedirectsTo() string

func (*URLsServiceUpdateRequest) GetUuid

func (x *URLsServiceUpdateRequest) GetUuid() string

func (*URLsServiceUpdateRequest) ProtoMessage

func (*URLsServiceUpdateRequest) ProtoMessage()

func (*URLsServiceUpdateRequest) ProtoReflect

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

func (*URLsServiceUpdateRequest) Reset

func (x *URLsServiceUpdateRequest) Reset()

func (*URLsServiceUpdateRequest) String

func (x *URLsServiceUpdateRequest) String() string

func (*URLsServiceUpdateRequest) Validate

func (m *URLsServiceUpdateRequest) Validate() error

Validate checks the field values on URLsServiceUpdateRequest 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 (*URLsServiceUpdateRequest) ValidateAll

func (m *URLsServiceUpdateRequest) ValidateAll() error

ValidateAll checks the field values on URLsServiceUpdateRequest 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 URLsServiceUpdateRequestMultiError, or nil if none found.

type URLsServiceUpdateRequestMultiError

type URLsServiceUpdateRequestMultiError []error

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

func (URLsServiceUpdateRequestMultiError) AllErrors

func (m URLsServiceUpdateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (URLsServiceUpdateRequestMultiError) Error

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

type URLsServiceUpdateRequestValidationError

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

URLsServiceUpdateRequestValidationError is the validation error returned by URLsServiceUpdateRequest.Validate if the designated constraints aren't met.

func (URLsServiceUpdateRequestValidationError) Cause

Cause function returns cause value.

func (URLsServiceUpdateRequestValidationError) Error

Error satisfies the builtin error interface

func (URLsServiceUpdateRequestValidationError) ErrorName

ErrorName returns error name.

func (URLsServiceUpdateRequestValidationError) Field

Field function returns field value.

func (URLsServiceUpdateRequestValidationError) Key

Key function returns key value.

func (URLsServiceUpdateRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedURLsServiceServer

type UnimplementedURLsServiceServer struct {
}

UnimplementedURLsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedURLsServiceServer) Archive

func (UnimplementedURLsServiceServer) Create

func (UnimplementedURLsServiceServer) Purge

func (UnimplementedURLsServiceServer) Restore

func (UnimplementedURLsServiceServer) Update

func (UnimplementedURLsServiceServer) Upsert

func (UnimplementedURLsServiceServer) ViewByCode

func (UnimplementedURLsServiceServer) ViewByUUID

type UnsafeURLsServiceServer

type UnsafeURLsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeURLsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to URLsServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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