Documentation
¶
Index ¶
- Variables
- func RegisterURLsServiceServer(s grpc.ServiceRegistrar, srv URLsServiceServer)
- type BooleanResponse
- func (*BooleanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BooleanResponse) GetValue() bool
- func (*BooleanResponse) ProtoMessage()
- func (x *BooleanResponse) ProtoReflect() protoreflect.Message
- func (x *BooleanResponse) Reset()
- func (x *BooleanResponse) String() string
- func (m *BooleanResponse) Validate() error
- func (m *BooleanResponse) ValidateAll() error
- type BooleanResponseMultiError
- type BooleanResponseValidationError
- func (e BooleanResponseValidationError) Cause() error
- func (e BooleanResponseValidationError) Error() string
- func (e BooleanResponseValidationError) ErrorName() string
- func (e BooleanResponseValidationError) Field() string
- func (e BooleanResponseValidationError) Key() bool
- func (e BooleanResponseValidationError) Reason() string
- type CountRequest
- func (*CountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CountRequest) GetIsActive() bool
- func (*CountRequest) ProtoMessage()
- func (x *CountRequest) ProtoReflect() protoreflect.Message
- func (x *CountRequest) Reset()
- func (x *CountRequest) String() string
- func (m *CountRequest) Validate() error
- func (m *CountRequest) ValidateAll() error
- type CountRequestMultiError
- type CountRequestValidationError
- func (e CountRequestValidationError) Cause() error
- func (e CountRequestValidationError) Error() string
- func (e CountRequestValidationError) ErrorName() string
- func (e CountRequestValidationError) Field() string
- func (e CountRequestValidationError) Key() bool
- func (e CountRequestValidationError) Reason() string
- type CountResponse
- func (*CountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CountResponse) GetCount() int64
- func (*CountResponse) ProtoMessage()
- func (x *CountResponse) ProtoReflect() protoreflect.Message
- func (x *CountResponse) Reset()
- func (x *CountResponse) String() string
- func (m *CountResponse) Validate() error
- func (m *CountResponse) ValidateAll() error
- type CountResponseMultiError
- type CountResponseValidationError
- func (e CountResponseValidationError) Cause() error
- func (e CountResponseValidationError) Error() string
- func (e CountResponseValidationError) ErrorName() string
- func (e CountResponseValidationError) Field() string
- func (e CountResponseValidationError) Key() bool
- func (e CountResponseValidationError) Reason() string
- type Empty
- type EmptyMultiError
- type EmptyValidationError
- type Identifier
- func (*Identifier) Descriptor() ([]byte, []int)deprecated
- func (x *Identifier) GetUuid() string
- func (*Identifier) ProtoMessage()
- func (x *Identifier) ProtoReflect() protoreflect.Message
- func (x *Identifier) Reset()
- func (x *Identifier) String() string
- func (m *Identifier) Validate() error
- func (m *Identifier) ValidateAll() error
- type IdentifierMultiError
- type IdentifierValidationError
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetCreatedAt() int64
- func (x *Metadata) GetIsActive() bool
- func (x *Metadata) GetModifiedAt() int64
- func (x *Metadata) GetUuid() string
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- func (m *Metadata) Validate() error
- func (m *Metadata) ValidateAll() error
- type MetadataMultiError
- type MetadataValidationError
- type SORT_ORDER
- type SearchKeyRequest
- func (*SearchKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchKeyRequest) GetSearchKey() string
- func (*SearchKeyRequest) ProtoMessage()
- func (x *SearchKeyRequest) ProtoReflect() protoreflect.Message
- func (x *SearchKeyRequest) Reset()
- func (x *SearchKeyRequest) String() string
- func (m *SearchKeyRequest) Validate() error
- func (m *SearchKeyRequest) ValidateAll() error
- type SearchKeyRequestMultiError
- type SearchKeyRequestValidationError
- func (e SearchKeyRequestValidationError) Cause() error
- func (e SearchKeyRequestValidationError) Error() string
- func (e SearchKeyRequestValidationError) ErrorName() string
- func (e SearchKeyRequestValidationError) Field() string
- func (e SearchKeyRequestValidationError) Key() bool
- func (e SearchKeyRequestValidationError) Reason() string
- type URL
- func (*URL) Descriptor() ([]byte, []int)deprecated
- func (x *URL) GetCode() string
- func (x *URL) GetDescription() string
- func (x *URL) GetExpiresAt() int64
- func (x *URL) GetMetadata() *Metadata
- func (x *URL) GetName() string
- func (x *URL) GetRedirectsTo() string
- func (x *URL) GetShortUrl() string
- func (*URL) ProtoMessage()
- func (x *URL) ProtoReflect() protoreflect.Message
- func (x *URL) Reset()
- func (x *URL) String() string
- func (m *URL) Validate() error
- func (m *URL) ValidateAll() error
- type URLMultiError
- type URLPaginationResp
- func (*URLPaginationResp) Descriptor() ([]byte, []int)deprecated
- func (x *URLPaginationResp) GetCount() int64
- func (x *URLPaginationResp) GetPayload() []*URL
- func (x *URLPaginationResp) GetTotal() int64
- func (*URLPaginationResp) ProtoMessage()
- func (x *URLPaginationResp) ProtoReflect() protoreflect.Message
- func (x *URLPaginationResp) Reset()
- func (x *URLPaginationResp) String() string
- func (m *URLPaginationResp) Validate() error
- func (m *URLPaginationResp) ValidateAll() error
- type URLPaginationRespMultiError
- type URLPaginationRespValidationError
- func (e URLPaginationRespValidationError) Cause() error
- func (e URLPaginationRespValidationError) Error() string
- func (e URLPaginationRespValidationError) ErrorName() string
- func (e URLPaginationRespValidationError) Field() string
- func (e URLPaginationRespValidationError) Key() bool
- func (e URLPaginationRespValidationError) Reason() string
- type URLResponse
- func (*URLResponse) Descriptor() ([]byte, []int)deprecated
- func (x *URLResponse) GetUrl() string
- func (*URLResponse) ProtoMessage()
- func (x *URLResponse) ProtoReflect() protoreflect.Message
- func (x *URLResponse) Reset()
- func (x *URLResponse) String() string
- func (m *URLResponse) Validate() error
- func (m *URLResponse) ValidateAll() error
- type URLResponseMultiError
- type URLResponseValidationError
- func (e URLResponseValidationError) Cause() error
- func (e URLResponseValidationError) Error() string
- func (e URLResponseValidationError) ErrorName() string
- func (e URLResponseValidationError) Field() string
- func (e URLResponseValidationError) Key() bool
- func (e URLResponseValidationError) Reason() string
- type URLValidationError
- type URL_SORT_KEY
- func (URL_SORT_KEY) Descriptor() protoreflect.EnumDescriptor
- func (x URL_SORT_KEY) Enum() *URL_SORT_KEY
- func (URL_SORT_KEY) EnumDescriptor() ([]byte, []int)deprecated
- func (x URL_SORT_KEY) Number() protoreflect.EnumNumber
- func (x URL_SORT_KEY) String() string
- func (URL_SORT_KEY) Type() protoreflect.EnumType
- type URLsList
- func (*URLsList) Descriptor() ([]byte, []int)deprecated
- func (x *URLsList) GetList() []*URL
- func (*URLsList) ProtoMessage()
- func (x *URLsList) ProtoReflect() protoreflect.Message
- func (x *URLsList) Reset()
- func (x *URLsList) String() string
- func (m *URLsList) Validate() error
- func (m *URLsList) ValidateAll() error
- type URLsListMultiError
- type URLsListValidationError
- type URLsServiceClient
- type URLsServiceCreateRequest
- func (*URLsServiceCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *URLsServiceCreateRequest) GetDescription() string
- func (x *URLsServiceCreateRequest) GetExpiresAt() int64
- func (x *URLsServiceCreateRequest) GetName() string
- func (x *URLsServiceCreateRequest) GetRedirectsTo() string
- func (*URLsServiceCreateRequest) ProtoMessage()
- func (x *URLsServiceCreateRequest) ProtoReflect() protoreflect.Message
- func (x *URLsServiceCreateRequest) Reset()
- func (x *URLsServiceCreateRequest) String() string
- func (m *URLsServiceCreateRequest) Validate() error
- func (m *URLsServiceCreateRequest) ValidateAll() error
- type URLsServiceCreateRequestMultiError
- type URLsServiceCreateRequestValidationError
- func (e URLsServiceCreateRequestValidationError) Cause() error
- func (e URLsServiceCreateRequestValidationError) Error() string
- func (e URLsServiceCreateRequestValidationError) ErrorName() string
- func (e URLsServiceCreateRequestValidationError) Field() string
- func (e URLsServiceCreateRequestValidationError) Key() bool
- func (e URLsServiceCreateRequestValidationError) Reason() string
- type URLsServiceFilterReq
- func (*URLsServiceFilterReq) Descriptor() ([]byte, []int)deprecated
- func (x *URLsServiceFilterReq) GetCode() string
- func (x *URLsServiceFilterReq) GetCount() int64
- func (x *URLsServiceFilterReq) GetCreationTimestampEnd() int64
- func (x *URLsServiceFilterReq) GetCreationTimestampStart() int64
- func (x *URLsServiceFilterReq) GetIsActive() bool
- func (x *URLsServiceFilterReq) GetName() string
- func (x *URLsServiceFilterReq) GetOffset() int64
- func (x *URLsServiceFilterReq) GetRedirectsTo() string
- func (x *URLsServiceFilterReq) GetSortKey() URL_SORT_KEY
- func (x *URLsServiceFilterReq) GetSortOrder() SORT_ORDER
- func (*URLsServiceFilterReq) ProtoMessage()
- func (x *URLsServiceFilterReq) ProtoReflect() protoreflect.Message
- func (x *URLsServiceFilterReq) Reset()
- func (x *URLsServiceFilterReq) String() string
- func (m *URLsServiceFilterReq) Validate() error
- func (m *URLsServiceFilterReq) ValidateAll() error
- type URLsServiceFilterReqMultiError
- type URLsServiceFilterReqValidationError
- func (e URLsServiceFilterReqValidationError) Cause() error
- func (e URLsServiceFilterReqValidationError) Error() string
- func (e URLsServiceFilterReqValidationError) ErrorName() string
- func (e URLsServiceFilterReqValidationError) Field() string
- func (e URLsServiceFilterReqValidationError) Key() bool
- func (e URLsServiceFilterReqValidationError) Reason() string
- type URLsServicePaginationReq
- func (*URLsServicePaginationReq) Descriptor() ([]byte, []int)deprecated
- func (x *URLsServicePaginationReq) GetCount() int64
- func (x *URLsServicePaginationReq) GetIsActive() bool
- func (x *URLsServicePaginationReq) GetOffset() int64
- func (x *URLsServicePaginationReq) GetSortKey() URL_SORT_KEY
- func (x *URLsServicePaginationReq) GetSortOrder() SORT_ORDER
- func (*URLsServicePaginationReq) ProtoMessage()
- func (x *URLsServicePaginationReq) ProtoReflect() protoreflect.Message
- func (x *URLsServicePaginationReq) Reset()
- func (x *URLsServicePaginationReq) String() string
- func (m *URLsServicePaginationReq) Validate() error
- func (m *URLsServicePaginationReq) ValidateAll() error
- type URLsServicePaginationReqMultiError
- type URLsServicePaginationReqValidationError
- func (e URLsServicePaginationReqValidationError) Cause() error
- func (e URLsServicePaginationReqValidationError) Error() string
- func (e URLsServicePaginationReqValidationError) ErrorName() string
- func (e URLsServicePaginationReqValidationError) Field() string
- func (e URLsServicePaginationReqValidationError) Key() bool
- func (e URLsServicePaginationReqValidationError) Reason() string
- type URLsServiceSearchAllReq
- func (*URLsServiceSearchAllReq) Descriptor() ([]byte, []int)deprecated
- func (x *URLsServiceSearchAllReq) GetCount() int64
- func (x *URLsServiceSearchAllReq) GetIsActive() bool
- func (x *URLsServiceSearchAllReq) GetOffset() int64
- func (x *URLsServiceSearchAllReq) GetSearchKey() string
- func (x *URLsServiceSearchAllReq) GetSortKey() URL_SORT_KEY
- func (x *URLsServiceSearchAllReq) GetSortOrder() SORT_ORDER
- func (*URLsServiceSearchAllReq) ProtoMessage()
- func (x *URLsServiceSearchAllReq) ProtoReflect() protoreflect.Message
- func (x *URLsServiceSearchAllReq) Reset()
- func (x *URLsServiceSearchAllReq) String() string
- func (m *URLsServiceSearchAllReq) Validate() error
- func (m *URLsServiceSearchAllReq) ValidateAll() error
- type URLsServiceSearchAllReqMultiError
- type URLsServiceSearchAllReqValidationError
- func (e URLsServiceSearchAllReqValidationError) Cause() error
- func (e URLsServiceSearchAllReqValidationError) Error() string
- func (e URLsServiceSearchAllReqValidationError) ErrorName() string
- func (e URLsServiceSearchAllReqValidationError) Field() string
- func (e URLsServiceSearchAllReqValidationError) Key() bool
- func (e URLsServiceSearchAllReqValidationError) Reason() string
- type URLsServiceServer
- type URLsServiceUpdateRequest
- func (*URLsServiceUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *URLsServiceUpdateRequest) GetDescription() string
- func (x *URLsServiceUpdateRequest) GetExpiresAt() int64
- func (x *URLsServiceUpdateRequest) GetName() string
- func (x *URLsServiceUpdateRequest) GetRedirectsTo() string
- func (x *URLsServiceUpdateRequest) GetUuid() string
- func (*URLsServiceUpdateRequest) ProtoMessage()
- func (x *URLsServiceUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *URLsServiceUpdateRequest) Reset()
- func (x *URLsServiceUpdateRequest) String() string
- func (m *URLsServiceUpdateRequest) Validate() error
- func (m *URLsServiceUpdateRequest) ValidateAll() error
- type URLsServiceUpdateRequestMultiError
- type URLsServiceUpdateRequestValidationError
- func (e URLsServiceUpdateRequestValidationError) Cause() error
- func (e URLsServiceUpdateRequestValidationError) Error() string
- func (e URLsServiceUpdateRequestValidationError) ErrorName() string
- func (e URLsServiceUpdateRequestValidationError) Field() string
- func (e URLsServiceUpdateRequestValidationError) Key() bool
- func (e URLsServiceUpdateRequestValidationError) Reason() string
- type UnimplementedURLsServiceServer
- func (UnimplementedURLsServiceServer) Archive(context.Context, *Identifier) (*Identifier, error)
- func (UnimplementedURLsServiceServer) Create(context.Context, *URLsServiceCreateRequest) (*URL, error)
- func (UnimplementedURLsServiceServer) Purge(context.Context, *Identifier) (*Identifier, error)
- func (UnimplementedURLsServiceServer) Restore(context.Context, *Identifier) (*Identifier, error)
- func (UnimplementedURLsServiceServer) Update(context.Context, *URLsServiceUpdateRequest) (*URL, error)
- func (UnimplementedURLsServiceServer) Upsert(context.Context, *URLsServiceCreateRequest) (*URL, error)
- func (UnimplementedURLsServiceServer) ViewByCode(context.Context, *SearchKeyRequest) (*URL, error)
- func (UnimplementedURLsServiceServer) ViewByUUID(context.Context, *Identifier) (*URL, error)
- type UnsafeURLsServiceServer
Constants ¶
This section is empty.
Variables ¶
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.
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.
var File_base_9t90_proto protoreflect.FileDescriptor
var File_urls_9t90_proto protoreflect.FileDescriptor
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 ¶
func (m BooleanResponseMultiError) Error() string
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 ¶
func (e BooleanResponseValidationError) Cause() error
Cause function returns cause value.
func (BooleanResponseValidationError) Error ¶
func (e BooleanResponseValidationError) Error() string
Error satisfies the builtin error interface
func (BooleanResponseValidationError) ErrorName ¶
func (e BooleanResponseValidationError) ErrorName() string
ErrorName returns error name.
func (BooleanResponseValidationError) Field ¶
func (e BooleanResponseValidationError) Field() string
Field function returns field value.
func (BooleanResponseValidationError) Key ¶
func (e BooleanResponseValidationError) Key() bool
Key function returns key value.
func (BooleanResponseValidationError) Reason ¶
func (e BooleanResponseValidationError) Reason() string
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 ¶
func (e CountRequestValidationError) Cause() error
Cause function returns cause value.
func (CountRequestValidationError) Error ¶
func (e CountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CountRequestValidationError) ErrorName ¶
func (e CountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CountRequestValidationError) Field ¶
func (e CountRequestValidationError) Field() string
Field function returns field value.
func (CountRequestValidationError) Key ¶
func (e CountRequestValidationError) Key() bool
Key function returns key value.
func (CountRequestValidationError) Reason ¶
func (e CountRequestValidationError) Reason() string
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 ¶
func (e CountResponseValidationError) Cause() error
Cause function returns cause value.
func (CountResponseValidationError) Error ¶
func (e CountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CountResponseValidationError) ErrorName ¶
func (e CountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CountResponseValidationError) Field ¶
func (e CountResponseValidationError) Field() string
Field function returns field value.
func (CountResponseValidationError) Key ¶
func (e CountResponseValidationError) Key() bool
Key function returns key value.
func (CountResponseValidationError) Reason ¶
func (e CountResponseValidationError) Reason() string
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
func (*Empty) Validate ¶
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 ¶
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 ¶
func (e IdentifierValidationError) Error() string
Error satisfies the builtin error interface
func (IdentifierValidationError) ErrorName ¶
func (e IdentifierValidationError) ErrorName() string
ErrorName returns error name.
func (IdentifierValidationError) Field ¶
func (e IdentifierValidationError) Field() string
Field function returns field value.
func (IdentifierValidationError) Key ¶
func (e IdentifierValidationError) Key() bool
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) GetCreatedAt ¶
func (*Metadata) GetIsActive ¶
func (*Metadata) GetModifiedAt ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
func (*Metadata) Validate ¶
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 ¶
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 ¶
func (SORT_ORDER) Type() protoreflect.EnumType
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 ¶
func (m SearchKeyRequestMultiError) Error() string
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 ¶
func (e SearchKeyRequestValidationError) Cause() error
Cause function returns cause value.
func (SearchKeyRequestValidationError) Error ¶
func (e SearchKeyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SearchKeyRequestValidationError) ErrorName ¶
func (e SearchKeyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SearchKeyRequestValidationError) Field ¶
func (e SearchKeyRequestValidationError) Field() string
Field function returns field value.
func (SearchKeyRequestValidationError) Key ¶
func (e SearchKeyRequestValidationError) Key() bool
Key function returns key value.
func (SearchKeyRequestValidationError) Reason ¶
func (e SearchKeyRequestValidationError) Reason() string
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) GetDescription ¶
func (*URL) GetExpiresAt ¶
func (*URL) GetMetadata ¶
func (*URL) GetRedirectsTo ¶
func (*URL) GetShortUrl ¶
func (*URL) ProtoMessage ¶
func (*URL) ProtoMessage()
func (*URL) ProtoReflect ¶
func (x *URL) ProtoReflect() protoreflect.Message
func (*URL) Validate ¶
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 ¶
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 ¶
func (m URLPaginationRespMultiError) Error() string
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 ¶
func (e URLPaginationRespValidationError) Cause() error
Cause function returns cause value.
func (URLPaginationRespValidationError) Error ¶
func (e URLPaginationRespValidationError) Error() string
Error satisfies the builtin error interface
func (URLPaginationRespValidationError) ErrorName ¶
func (e URLPaginationRespValidationError) ErrorName() string
ErrorName returns error name.
func (URLPaginationRespValidationError) Field ¶
func (e URLPaginationRespValidationError) Field() string
Field function returns field value.
func (URLPaginationRespValidationError) Key ¶
func (e URLPaginationRespValidationError) Key() bool
Key function returns key value.
func (URLPaginationRespValidationError) Reason ¶
func (e URLPaginationRespValidationError) Reason() string
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 ¶
func (e URLResponseValidationError) Cause() error
Cause function returns cause value.
func (URLResponseValidationError) Error ¶
func (e URLResponseValidationError) Error() string
Error satisfies the builtin error interface
func (URLResponseValidationError) ErrorName ¶
func (e URLResponseValidationError) ErrorName() string
ErrorName returns error name.
func (URLResponseValidationError) Field ¶
func (e URLResponseValidationError) Field() string
Field function returns field value.
func (URLResponseValidationError) Key ¶
func (e URLResponseValidationError) Key() bool
Key function returns key value.
func (URLResponseValidationError) Reason ¶
func (e URLResponseValidationError) Reason() string
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) Descriptor() protoreflect.EnumDescriptor
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 (x URL_SORT_KEY) Number() protoreflect.EnumNumber
func (URL_SORT_KEY) String ¶
func (x URL_SORT_KEY) String() string
func (URL_SORT_KEY) Type ¶
func (URL_SORT_KEY) Type() protoreflect.EnumType
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) ProtoMessage ¶
func (*URLsList) ProtoMessage()
func (*URLsList) ProtoReflect ¶
func (x *URLsList) ProtoReflect() protoreflect.Message
func (*URLsList) Validate ¶
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 ¶
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.
func NewURLsServiceClient ¶
func NewURLsServiceClient(cc grpc.ClientConnInterface) URLsServiceClient
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 ¶
func (m URLsServiceCreateRequestMultiError) Error() string
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 ¶
func (e URLsServiceCreateRequestValidationError) Cause() error
Cause function returns cause value.
func (URLsServiceCreateRequestValidationError) Error ¶
func (e URLsServiceCreateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (URLsServiceCreateRequestValidationError) ErrorName ¶
func (e URLsServiceCreateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (URLsServiceCreateRequestValidationError) Field ¶
func (e URLsServiceCreateRequestValidationError) Field() string
Field function returns field value.
func (URLsServiceCreateRequestValidationError) Key ¶
func (e URLsServiceCreateRequestValidationError) Key() bool
Key function returns key value.
func (URLsServiceCreateRequestValidationError) Reason ¶
func (e URLsServiceCreateRequestValidationError) Reason() string
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 ¶
func (m URLsServiceFilterReqMultiError) Error() string
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 ¶
func (e URLsServiceFilterReqValidationError) Cause() error
Cause function returns cause value.
func (URLsServiceFilterReqValidationError) Error ¶
func (e URLsServiceFilterReqValidationError) Error() string
Error satisfies the builtin error interface
func (URLsServiceFilterReqValidationError) ErrorName ¶
func (e URLsServiceFilterReqValidationError) ErrorName() string
ErrorName returns error name.
func (URLsServiceFilterReqValidationError) Field ¶
func (e URLsServiceFilterReqValidationError) Field() string
Field function returns field value.
func (URLsServiceFilterReqValidationError) Key ¶
func (e URLsServiceFilterReqValidationError) Key() bool
Key function returns key value.
func (URLsServiceFilterReqValidationError) Reason ¶
func (e URLsServiceFilterReqValidationError) Reason() string
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 ¶
func (m URLsServicePaginationReqMultiError) Error() string
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 ¶
func (e URLsServicePaginationReqValidationError) Cause() error
Cause function returns cause value.
func (URLsServicePaginationReqValidationError) Error ¶
func (e URLsServicePaginationReqValidationError) Error() string
Error satisfies the builtin error interface
func (URLsServicePaginationReqValidationError) ErrorName ¶
func (e URLsServicePaginationReqValidationError) ErrorName() string
ErrorName returns error name.
func (URLsServicePaginationReqValidationError) Field ¶
func (e URLsServicePaginationReqValidationError) Field() string
Field function returns field value.
func (URLsServicePaginationReqValidationError) Key ¶
func (e URLsServicePaginationReqValidationError) Key() bool
Key function returns key value.
func (URLsServicePaginationReqValidationError) Reason ¶
func (e URLsServicePaginationReqValidationError) Reason() string
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 ¶
func (m URLsServiceSearchAllReqMultiError) Error() string
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 ¶
func (e URLsServiceSearchAllReqValidationError) Cause() error
Cause function returns cause value.
func (URLsServiceSearchAllReqValidationError) Error ¶
func (e URLsServiceSearchAllReqValidationError) Error() string
Error satisfies the builtin error interface
func (URLsServiceSearchAllReqValidationError) ErrorName ¶
func (e URLsServiceSearchAllReqValidationError) ErrorName() string
ErrorName returns error name.
func (URLsServiceSearchAllReqValidationError) Field ¶
func (e URLsServiceSearchAllReqValidationError) Field() string
Field function returns field value.
func (URLsServiceSearchAllReqValidationError) Key ¶
func (e URLsServiceSearchAllReqValidationError) Key() bool
Key function returns key value.
func (URLsServiceSearchAllReqValidationError) Reason ¶
func (e URLsServiceSearchAllReqValidationError) Reason() string
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 ¶
func (m URLsServiceUpdateRequestMultiError) Error() string
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 ¶
func (e URLsServiceUpdateRequestValidationError) Cause() error
Cause function returns cause value.
func (URLsServiceUpdateRequestValidationError) Error ¶
func (e URLsServiceUpdateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (URLsServiceUpdateRequestValidationError) ErrorName ¶
func (e URLsServiceUpdateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (URLsServiceUpdateRequestValidationError) Field ¶
func (e URLsServiceUpdateRequestValidationError) Field() string
Field function returns field value.
func (URLsServiceUpdateRequestValidationError) Key ¶
func (e URLsServiceUpdateRequestValidationError) Key() bool
Key function returns key value.
func (URLsServiceUpdateRequestValidationError) Reason ¶
func (e URLsServiceUpdateRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedURLsServiceServer ¶
type UnimplementedURLsServiceServer struct { }
UnimplementedURLsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedURLsServiceServer) Archive ¶
func (UnimplementedURLsServiceServer) Archive(context.Context, *Identifier) (*Identifier, error)
func (UnimplementedURLsServiceServer) Create ¶
func (UnimplementedURLsServiceServer) Create(context.Context, *URLsServiceCreateRequest) (*URL, error)
func (UnimplementedURLsServiceServer) Purge ¶
func (UnimplementedURLsServiceServer) Purge(context.Context, *Identifier) (*Identifier, error)
func (UnimplementedURLsServiceServer) Restore ¶
func (UnimplementedURLsServiceServer) Restore(context.Context, *Identifier) (*Identifier, error)
func (UnimplementedURLsServiceServer) Update ¶
func (UnimplementedURLsServiceServer) Update(context.Context, *URLsServiceUpdateRequest) (*URL, error)
func (UnimplementedURLsServiceServer) Upsert ¶
func (UnimplementedURLsServiceServer) Upsert(context.Context, *URLsServiceCreateRequest) (*URL, error)
func (UnimplementedURLsServiceServer) ViewByCode ¶
func (UnimplementedURLsServiceServer) ViewByCode(context.Context, *SearchKeyRequest) (*URL, error)
func (UnimplementedURLsServiceServer) ViewByUUID ¶
func (UnimplementedURLsServiceServer) ViewByUUID(context.Context, *Identifier) (*URL, error)
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.