model

package
v0.0.0-...-890f6be Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_entity_domain_shortening_model_shortening_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ShortenedUrl

type ShortenedUrl struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	OriginalUrl string `protobuf:"bytes,2,opt,name=original_url,json=originalUrl,proto3" json:"original_url,omitempty"`
	ShortUrl    string `protobuf:"bytes,3,opt,name=short_url,json=shortUrl,proto3" json:"short_url,omitempty"`
	// @gotags: swaggertype:"string"
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" swaggertype:"string"`
	// @gotags: swaggertype:"string"
	ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty" swaggertype:"string"`
	// contains filtered or unexported fields
}

func (*ShortenedUrl) Descriptor deprecated

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

Deprecated: Use ShortenedUrl.ProtoReflect.Descriptor instead.

func (*ShortenedUrl) GetCreatedAt

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

func (*ShortenedUrl) GetExpiredAt

func (x *ShortenedUrl) GetExpiredAt() *timestamppb.Timestamp

func (*ShortenedUrl) GetId

func (x *ShortenedUrl) GetId() int64

func (*ShortenedUrl) GetOriginalUrl

func (x *ShortenedUrl) GetOriginalUrl() string

func (*ShortenedUrl) GetShortUrl

func (x *ShortenedUrl) GetShortUrl() string

func (*ShortenedUrl) ProtoMessage

func (*ShortenedUrl) ProtoMessage()

func (*ShortenedUrl) ProtoReflect

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

func (*ShortenedUrl) Reset

func (x *ShortenedUrl) Reset()

func (*ShortenedUrl) String

func (x *ShortenedUrl) String() string

Jump to

Keyboard shortcuts

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