v1

package
v0.0.0-...-1ec7a38 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_infrastructure_repository_crud_types_v1_link_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CreateLinkError

type CreateLinkError struct {
	Link v1.Link
}

CreateLinkError - create link error

func (*CreateLinkError) Error

func (e *CreateLinkError) Error() string
type FilterLink struct {
	Url       *StringFilterInput `json:"url"`
	Hash      *StringFilterInput `json:"hash"`
	Describe  *StringFilterInput `json:"describe"`
	CreatedAt *StringFilterInput `json:"createdat"`
	UpdatedAt *StringFilterInput `json:"updatedat"`
}
type Link struct {

	// URL
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// Hash by URL + salt
	Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// Describe of link
	Describe string `protobuf:"bytes,3,opt,name=describe,proto3" json:"describe,omitempty"`
	// Create at
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Update at
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Link

func (*Link) Descriptor deprecated

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

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetCreatedAt

func (x *Link) GetCreatedAt() *timestamppb.Timestamp

func (*Link) GetDescribe

func (x *Link) GetDescribe() string

func (*Link) GetHash

func (x *Link) GetHash() string

func (*Link) GetUpdatedAt

func (x *Link) GetUpdatedAt() *timestamppb.Timestamp

func (*Link) GetUrl

func (x *Link) GetUrl() string

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

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

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string
type Links struct {

	// Links
	Link []*Link `protobuf:"bytes,1,rep,name=link,proto3" json:"link,omitempty"`
	// contains filtered or unexported fields
}

Link list

func (*Links) Descriptor deprecated

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

Deprecated: Use Links.ProtoReflect.Descriptor instead.

func (x *Links) GetLink() []*Link

func (*Links) ProtoMessage

func (*Links) ProtoMessage()

func (*Links) ProtoReflect

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

func (*Links) Reset

func (x *Links) Reset()

func (*Links) String

func (x *Links) String() string

type NotFoundByHashError

type NotFoundByHashError struct {
	Hash string
}

NotFoundByHashError - not found link by hash

func (*NotFoundByHashError) Error

func (e *NotFoundByHashError) Error() string

type NotFoundError

type NotFoundError struct {
	Link v1.Link
}

NotFoundError - not found link

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type StringFilterInput

type StringFilterInput struct {
	Eq          string   `json:"eq,omitempty"`
	Ne          string   `json:"ne,omitempty"`
	Lt          string   `json:"lt,omitempty"`
	Le          string   `json:"le,omitempty"`
	Gt          string   `json:"gt,omitempty"`
	Ge          string   `json:"ge,omitempty"`
	Contains    []string `json:"contains,omitempty"`
	NotContains []string `json:"notContains,omitempty"`
	StartsWith  string   `json:"startsWith,omitempty"`
	EndsWith    string   `json:"endsWith,omitempty"`
	IsEmpty     bool     `json:"isEmpty,omitempty"`
	IsNotEmpty  bool     `json:"isNotEmpty,omitempty"`
}

Jump to

Keyboard shortcuts

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