Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterIShorturlServer(s grpc.ServiceRegistrar, srv IShorturlServer)
- type AllLinkRequest
- type AllLinkResponse
- func (*AllLinkResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AllLinkResponse) GetError() string
- func (x *AllLinkResponse) GetUser() string
- func (*AllLinkResponse) ProtoMessage()
- func (x *AllLinkResponse) ProtoReflect() protoreflect.Message
- func (x *AllLinkResponse) Reset()
- func (x *AllLinkResponse) String() string
- type AllUsersRequest
- type AllUsersResponse
- func (*AllUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AllUsersResponse) GetError() string
- func (x *AllUsersResponse) GetUser() string
- func (*AllUsersResponse) ProtoMessage()
- func (x *AllUsersResponse) ProtoReflect() protoreflect.Message
- func (x *AllUsersResponse) Reset()
- func (x *AllUsersResponse) String() string
- type IShorturlClient
- type IShorturlServer
- type List
- type LongLinkRequest
- type LongLinkResponse
- func (*LongLinkResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LongLinkResponse) GetError() string
- func (x *LongLinkResponse) GetShorturl() string
- func (*LongLinkResponse) ProtoMessage()
- func (x *LongLinkResponse) ProtoReflect() protoreflect.Message
- func (x *LongLinkResponse) Reset()
- func (x *LongLinkResponse) String() string
- type PostRequest
- type PostResponse
- func (*PostResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PostResponse) GetError() string
- func (x *PostResponse) GetResult() *ShorturlResponse
- func (*PostResponse) ProtoMessage()
- func (x *PostResponse) ProtoReflect() protoreflect.Message
- func (x *PostResponse) Reset()
- func (x *PostResponse) String() string
- type ReadServiceRequest
- type ReadServiceResponse
- func (*ReadServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadServiceResponse) GetError() string
- func (*ReadServiceResponse) ProtoMessage()
- func (x *ReadServiceResponse) ProtoReflect() protoreflect.Message
- func (x *ReadServiceResponse) Reset()
- func (x *ReadServiceResponse) String() string
- type SaveServiceRequest
- type SaveServiceResponse
- func (*SaveServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SaveServiceResponse) GetError() string
- func (*SaveServiceResponse) ProtoMessage()
- func (x *SaveServiceResponse) ProtoReflect() protoreflect.Message
- func (x *SaveServiceResponse) Reset()
- func (x *SaveServiceResponse) String() string
- type ShortLinkRequest
- type ShortLinkResponse
- func (*ShortLinkResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ShortLinkResponse) GetError() string
- func (x *ShortLinkResponse) GetShorturl() string
- func (*ShortLinkResponse) ProtoMessage()
- func (x *ShortLinkResponse) ProtoReflect() protoreflect.Message
- func (x *ShortLinkResponse) Reset()
- func (x *ShortLinkResponse) String() string
- type Shorturl
- func (*Shorturl) Descriptor() ([]byte, []int)deprecated
- func (x *Shorturl) GetDel() bool
- func (x *Shorturl) GetSlug() string
- func (x *Shorturl) GetUrl() string
- func (x *Shorturl) GetUserId() string
- func (*Shorturl) ProtoMessage()
- func (x *Shorturl) ProtoReflect() protoreflect.Message
- func (x *Shorturl) Reset()
- func (x *Shorturl) String() string
- type ShorturlResponse
- type Shorturls
- type Static
- type Static_CountURLs
- type Static_CountUsers
- type UnimplementedIShorturlServer
- func (UnimplementedIShorturlServer) AllLink(context.Context, *AllLinkRequest) (*AllLinkResponse, error)
- func (UnimplementedIShorturlServer) AllUsers(context.Context, *AllUsersRequest) (*AllUsersResponse, error)
- func (UnimplementedIShorturlServer) LongLink(context.Context, *LongLinkRequest) (*LongLinkResponse, error)
- func (UnimplementedIShorturlServer) Post(context.Context, *PostRequest) (*PostResponse, error)
- func (UnimplementedIShorturlServer) ReadService(context.Context, *ReadServiceRequest) (*ReadServiceResponse, error)
- func (UnimplementedIShorturlServer) SaveService(context.Context, *SaveServiceRequest) (*SaveServiceResponse, error)
- func (UnimplementedIShorturlServer) ShortLink(context.Context, *ShortLinkRequest) (*ShortLinkResponse, error)
- func (UnimplementedIShorturlServer) UserAllLink(context.Context, *UserAllLinkRequest) (*UserAllLinkResponse, error)
- func (UnimplementedIShorturlServer) UserDelLink(context.Context, *UserDelLinkRequest) (*UserDelLinkResponse, error)
- type UnsafeIShorturlServer
- type User
- type UserAllLinkRequest
- type UserAllLinkResponse
- func (*UserAllLinkResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserAllLinkResponse) GetError() string
- func (x *UserAllLinkResponse) GetUser() string
- func (*UserAllLinkResponse) ProtoMessage()
- func (x *UserAllLinkResponse) ProtoReflect() protoreflect.Message
- func (x *UserAllLinkResponse) Reset()
- func (x *UserAllLinkResponse) String() string
- type UserDelLinkRequest
- type UserDelLinkResponse
- func (*UserDelLinkResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserDelLinkResponse) GetError() string
- func (*UserDelLinkResponse) ProtoMessage()
- func (x *UserDelLinkResponse) ProtoReflect() protoreflect.Message
- func (x *UserDelLinkResponse) Reset()
- func (x *UserDelLinkResponse) String() string
Constants ¶
const ( IShorturl_Post_FullMethodName = "/proto.IShorturl/Post" IShorturl_LongLink_FullMethodName = "/proto.IShorturl/LongLink" IShorturl_ShortLink_FullMethodName = "/proto.IShorturl/ShortLink" IShorturl_UserAllLink_FullMethodName = "/proto.IShorturl/UserAllLink" IShorturl_AllLink_FullMethodName = "/proto.IShorturl/AllLink" IShorturl_AllUsers_FullMethodName = "/proto.IShorturl/AllUsers" IShorturl_UserDelLink_FullMethodName = "/proto.IShorturl/UserDelLink" IShorturl_ReadService_FullMethodName = "/proto.IShorturl/ReadService" IShorturl_SaveService_FullMethodName = "/proto.IShorturl/SaveService" )
Variables ¶
var File_api_shorturl_proto protoreflect.FileDescriptor
var IShorturl_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.IShorturl", HandlerType: (*IShorturlServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Post", Handler: _IShorturl_Post_Handler, }, { MethodName: "LongLink", Handler: _IShorturl_LongLink_Handler, }, { MethodName: "ShortLink", Handler: _IShorturl_ShortLink_Handler, }, { MethodName: "UserAllLink", Handler: _IShorturl_UserAllLink_Handler, }, { MethodName: "AllLink", Handler: _IShorturl_AllLink_Handler, }, { MethodName: "AllUsers", Handler: _IShorturl_AllUsers_Handler, }, { MethodName: "UserDelLink", Handler: _IShorturl_UserDelLink_Handler, }, { MethodName: "ReadService", Handler: _IShorturl_ReadService_Handler, }, { MethodName: "SaveService", Handler: _IShorturl_SaveService_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/shorturl.proto", }
IShorturl_ServiceDesc is the grpc.ServiceDesc for IShorturl service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIShorturlServer ¶
func RegisterIShorturlServer(s grpc.ServiceRegistrar, srv IShorturlServer)
Types ¶
type AllLinkRequest ¶
type AllLinkRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*AllLinkRequest) Descriptor
deprecated
func (*AllLinkRequest) Descriptor() ([]byte, []int)
Deprecated: Use AllLinkRequest.ProtoReflect.Descriptor instead.
func (*AllLinkRequest) GetUser ¶
func (x *AllLinkRequest) GetUser() *User
func (*AllLinkRequest) ProtoMessage ¶
func (*AllLinkRequest) ProtoMessage()
func (*AllLinkRequest) ProtoReflect ¶
func (x *AllLinkRequest) ProtoReflect() protoreflect.Message
func (*AllLinkRequest) Reset ¶
func (x *AllLinkRequest) Reset()
func (*AllLinkRequest) String ¶
func (x *AllLinkRequest) String() string
type AllLinkResponse ¶
type AllLinkResponse struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // короткий url вернуть Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // ошибка // contains filtered or unexported fields }
func (*AllLinkResponse) Descriptor
deprecated
func (*AllLinkResponse) Descriptor() ([]byte, []int)
Deprecated: Use AllLinkResponse.ProtoReflect.Descriptor instead.
func (*AllLinkResponse) GetError ¶
func (x *AllLinkResponse) GetError() string
func (*AllLinkResponse) GetUser ¶
func (x *AllLinkResponse) GetUser() string
func (*AllLinkResponse) ProtoMessage ¶
func (*AllLinkResponse) ProtoMessage()
func (*AllLinkResponse) ProtoReflect ¶
func (x *AllLinkResponse) ProtoReflect() protoreflect.Message
func (*AllLinkResponse) Reset ¶
func (x *AllLinkResponse) Reset()
func (*AllLinkResponse) String ¶
func (x *AllLinkResponse) String() string
type AllUsersRequest ¶
type AllUsersRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*AllUsersRequest) Descriptor
deprecated
func (*AllUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use AllUsersRequest.ProtoReflect.Descriptor instead.
func (*AllUsersRequest) GetUser ¶
func (x *AllUsersRequest) GetUser() *User
func (*AllUsersRequest) ProtoMessage ¶
func (*AllUsersRequest) ProtoMessage()
func (*AllUsersRequest) ProtoReflect ¶
func (x *AllUsersRequest) ProtoReflect() protoreflect.Message
func (*AllUsersRequest) Reset ¶
func (x *AllUsersRequest) Reset()
func (*AllUsersRequest) String ¶
func (x *AllUsersRequest) String() string
type AllUsersResponse ¶
type AllUsersResponse struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // короткий url вернуть Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // ошибка // contains filtered or unexported fields }
func (*AllUsersResponse) Descriptor
deprecated
func (*AllUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use AllUsersResponse.ProtoReflect.Descriptor instead.
func (*AllUsersResponse) GetError ¶
func (x *AllUsersResponse) GetError() string
func (*AllUsersResponse) GetUser ¶
func (x *AllUsersResponse) GetUser() string
func (*AllUsersResponse) ProtoMessage ¶
func (*AllUsersResponse) ProtoMessage()
func (*AllUsersResponse) ProtoReflect ¶
func (x *AllUsersResponse) ProtoReflect() protoreflect.Message
func (*AllUsersResponse) Reset ¶
func (x *AllUsersResponse) Reset()
func (*AllUsersResponse) String ¶
func (x *AllUsersResponse) String() string
type IShorturlClient ¶
type IShorturlClient interface { // Post(context.Context, *entity.Shorturl) error Post(ctx context.Context, in *PostRequest, opts ...grpc.CallOption) (*PostResponse, error) // LongLink(context.Context, *entity.Shorturl) (string, error) LongLink(ctx context.Context, in *LongLinkRequest, opts ...grpc.CallOption) (*LongLinkResponse, error) // ShortLink(context.Context, *entity.Shorturl) (*entity.Shorturl, error) ShortLink(ctx context.Context, in *ShortLinkRequest, opts ...grpc.CallOption) (*ShortLinkResponse, error) // UserAllLink(ctx context.Context, u *entity.User) (*entity.User, error) UserAllLink(ctx context.Context, in *UserAllLinkRequest, opts ...grpc.CallOption) (*UserAllLinkResponse, error) // AllLink() (entity.CountURLs, error) AllLink(ctx context.Context, in *AllLinkRequest, opts ...grpc.CallOption) (*AllLinkResponse, error) // AllUsers() (entity.CountUsers, error) AllUsers(ctx context.Context, in *AllUsersRequest, opts ...grpc.CallOption) (*AllUsersResponse, error) // UserDelLink(ctx context.Context, u *entity.User) error UserDelLink(ctx context.Context, in *UserDelLinkRequest, opts ...grpc.CallOption) (*UserDelLinkResponse, error) // ReadService() error ReadService(ctx context.Context, in *ReadServiceRequest, opts ...grpc.CallOption) (*ReadServiceResponse, error) // SaveService() error SaveService(ctx context.Context, in *SaveServiceRequest, opts ...grpc.CallOption) (*SaveServiceResponse, error) }
IShorturlClient is the client API for IShorturl 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 NewIShorturlClient ¶
func NewIShorturlClient(cc grpc.ClientConnInterface) IShorturlClient
type IShorturlServer ¶
type IShorturlServer interface { // Post(context.Context, *entity.Shorturl) error Post(context.Context, *PostRequest) (*PostResponse, error) // LongLink(context.Context, *entity.Shorturl) (string, error) LongLink(context.Context, *LongLinkRequest) (*LongLinkResponse, error) // ShortLink(context.Context, *entity.Shorturl) (*entity.Shorturl, error) ShortLink(context.Context, *ShortLinkRequest) (*ShortLinkResponse, error) // UserAllLink(ctx context.Context, u *entity.User) (*entity.User, error) UserAllLink(context.Context, *UserAllLinkRequest) (*UserAllLinkResponse, error) // AllLink() (entity.CountURLs, error) AllLink(context.Context, *AllLinkRequest) (*AllLinkResponse, error) // AllUsers() (entity.CountUsers, error) AllUsers(context.Context, *AllUsersRequest) (*AllUsersResponse, error) // UserDelLink(ctx context.Context, u *entity.User) error UserDelLink(context.Context, *UserDelLinkRequest) (*UserDelLinkResponse, error) // ReadService() error ReadService(context.Context, *ReadServiceRequest) (*ReadServiceResponse, error) // SaveService() error SaveService(context.Context, *SaveServiceRequest) (*SaveServiceResponse, error) // contains filtered or unexported methods }
IShorturlServer is the server API for IShorturl service. All implementations must embed UnimplementedIShorturlServer for forward compatibility
type List ¶
type List struct { ShortUrl string `protobuf:"bytes,4,opt,name=short_url,json=shortUrl,proto3" json:"short_url,omitempty"` // Строковый идентификатор OriginalUrl string `protobuf:"bytes,5,opt,name=original_url,json=originalUrl,proto3" json:"original_url,omitempty"` // URL для сокращения // contains filtered or unexported fields }
List -.
func (*List) Descriptor
deprecated
func (*List) GetOriginalUrl ¶
func (*List) GetShortUrl ¶
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
func (*List) ProtoReflect ¶
func (x *List) ProtoReflect() protoreflect.Message
type LongLinkRequest ¶
type LongLinkRequest struct { Shorturl *Shorturl `protobuf:"bytes,1,opt,name=shorturl,proto3" json:"shorturl,omitempty"` // contains filtered or unexported fields }
func (*LongLinkRequest) Descriptor
deprecated
func (*LongLinkRequest) Descriptor() ([]byte, []int)
Deprecated: Use LongLinkRequest.ProtoReflect.Descriptor instead.
func (*LongLinkRequest) GetShorturl ¶
func (x *LongLinkRequest) GetShorturl() *Shorturl
func (*LongLinkRequest) ProtoMessage ¶
func (*LongLinkRequest) ProtoMessage()
func (*LongLinkRequest) ProtoReflect ¶
func (x *LongLinkRequest) ProtoReflect() protoreflect.Message
func (*LongLinkRequest) Reset ¶
func (x *LongLinkRequest) Reset()
func (*LongLinkRequest) String ¶
func (x *LongLinkRequest) String() string
type LongLinkResponse ¶
type LongLinkResponse struct { Shorturl string `protobuf:"bytes,1,opt,name=shorturl,proto3" json:"shorturl,omitempty"` // короткий url вернуть Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // ошибка // contains filtered or unexported fields }
func (*LongLinkResponse) Descriptor
deprecated
func (*LongLinkResponse) Descriptor() ([]byte, []int)
Deprecated: Use LongLinkResponse.ProtoReflect.Descriptor instead.
func (*LongLinkResponse) GetError ¶
func (x *LongLinkResponse) GetError() string
func (*LongLinkResponse) GetShorturl ¶
func (x *LongLinkResponse) GetShorturl() string
func (*LongLinkResponse) ProtoMessage ¶
func (*LongLinkResponse) ProtoMessage()
func (*LongLinkResponse) ProtoReflect ¶
func (x *LongLinkResponse) ProtoReflect() protoreflect.Message
func (*LongLinkResponse) Reset ¶
func (x *LongLinkResponse) Reset()
func (*LongLinkResponse) String ¶
func (x *LongLinkResponse) String() string
type PostRequest ¶
type PostRequest struct { Shorturl *Shorturl `protobuf:"bytes,1,opt,name=shorturl,proto3" json:"shorturl,omitempty"` // contains filtered or unexported fields }
func (*PostRequest) Descriptor
deprecated
func (*PostRequest) Descriptor() ([]byte, []int)
Deprecated: Use PostRequest.ProtoReflect.Descriptor instead.
func (*PostRequest) GetShorturl ¶
func (x *PostRequest) GetShorturl() *Shorturl
func (*PostRequest) ProtoMessage ¶
func (*PostRequest) ProtoMessage()
func (*PostRequest) ProtoReflect ¶
func (x *PostRequest) ProtoReflect() protoreflect.Message
func (*PostRequest) Reset ¶
func (x *PostRequest) Reset()
func (*PostRequest) String ¶
func (x *PostRequest) String() string
type PostResponse ¶
type PostResponse struct { Result *ShorturlResponse `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // ошибка // contains filtered or unexported fields }
func (*PostResponse) Descriptor
deprecated
func (*PostResponse) Descriptor() ([]byte, []int)
Deprecated: Use PostResponse.ProtoReflect.Descriptor instead.
func (*PostResponse) GetError ¶
func (x *PostResponse) GetError() string
func (*PostResponse) GetResult ¶
func (x *PostResponse) GetResult() *ShorturlResponse
func (*PostResponse) ProtoMessage ¶
func (*PostResponse) ProtoMessage()
func (*PostResponse) ProtoReflect ¶
func (x *PostResponse) ProtoReflect() protoreflect.Message
func (*PostResponse) Reset ¶
func (x *PostResponse) Reset()
func (*PostResponse) String ¶
func (x *PostResponse) String() string
type ReadServiceRequest ¶
type ReadServiceRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*ReadServiceRequest) Descriptor
deprecated
func (*ReadServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadServiceRequest.ProtoReflect.Descriptor instead.
func (*ReadServiceRequest) GetUser ¶
func (x *ReadServiceRequest) GetUser() *User
func (*ReadServiceRequest) ProtoMessage ¶
func (*ReadServiceRequest) ProtoMessage()
func (*ReadServiceRequest) ProtoReflect ¶
func (x *ReadServiceRequest) ProtoReflect() protoreflect.Message
func (*ReadServiceRequest) Reset ¶
func (x *ReadServiceRequest) Reset()
func (*ReadServiceRequest) String ¶
func (x *ReadServiceRequest) String() string
type ReadServiceResponse ¶
type ReadServiceResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // ошибка // contains filtered or unexported fields }
func (*ReadServiceResponse) Descriptor
deprecated
func (*ReadServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadServiceResponse.ProtoReflect.Descriptor instead.
func (*ReadServiceResponse) GetError ¶
func (x *ReadServiceResponse) GetError() string
func (*ReadServiceResponse) ProtoMessage ¶
func (*ReadServiceResponse) ProtoMessage()
func (*ReadServiceResponse) ProtoReflect ¶
func (x *ReadServiceResponse) ProtoReflect() protoreflect.Message
func (*ReadServiceResponse) Reset ¶
func (x *ReadServiceResponse) Reset()
func (*ReadServiceResponse) String ¶
func (x *ReadServiceResponse) String() string
type SaveServiceRequest ¶
type SaveServiceRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*SaveServiceRequest) Descriptor
deprecated
func (*SaveServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveServiceRequest.ProtoReflect.Descriptor instead.
func (*SaveServiceRequest) GetUser ¶
func (x *SaveServiceRequest) GetUser() *User
func (*SaveServiceRequest) ProtoMessage ¶
func (*SaveServiceRequest) ProtoMessage()
func (*SaveServiceRequest) ProtoReflect ¶
func (x *SaveServiceRequest) ProtoReflect() protoreflect.Message
func (*SaveServiceRequest) Reset ¶
func (x *SaveServiceRequest) Reset()
func (*SaveServiceRequest) String ¶
func (x *SaveServiceRequest) String() string
type SaveServiceResponse ¶
type SaveServiceResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // ошибка // contains filtered or unexported fields }
func (*SaveServiceResponse) Descriptor
deprecated
func (*SaveServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use SaveServiceResponse.ProtoReflect.Descriptor instead.
func (*SaveServiceResponse) GetError ¶
func (x *SaveServiceResponse) GetError() string
func (*SaveServiceResponse) ProtoMessage ¶
func (*SaveServiceResponse) ProtoMessage()
func (*SaveServiceResponse) ProtoReflect ¶
func (x *SaveServiceResponse) ProtoReflect() protoreflect.Message
func (*SaveServiceResponse) Reset ¶
func (x *SaveServiceResponse) Reset()
func (*SaveServiceResponse) String ¶
func (x *SaveServiceResponse) String() string
type ShortLinkRequest ¶
type ShortLinkRequest struct { Shorturl *Shorturl `protobuf:"bytes,1,opt,name=shorturl,proto3" json:"shorturl,omitempty"` // contains filtered or unexported fields }
func (*ShortLinkRequest) Descriptor
deprecated
func (*ShortLinkRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShortLinkRequest.ProtoReflect.Descriptor instead.
func (*ShortLinkRequest) GetShorturl ¶
func (x *ShortLinkRequest) GetShorturl() *Shorturl
func (*ShortLinkRequest) ProtoMessage ¶
func (*ShortLinkRequest) ProtoMessage()
func (*ShortLinkRequest) ProtoReflect ¶
func (x *ShortLinkRequest) ProtoReflect() protoreflect.Message
func (*ShortLinkRequest) Reset ¶
func (x *ShortLinkRequest) Reset()
func (*ShortLinkRequest) String ¶
func (x *ShortLinkRequest) String() string
type ShortLinkResponse ¶
type ShortLinkResponse struct { Shorturl string `protobuf:"bytes,1,opt,name=shorturl,proto3" json:"shorturl,omitempty"` // короткий url вернуть Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // ошибка // contains filtered or unexported fields }
func (*ShortLinkResponse) Descriptor
deprecated
func (*ShortLinkResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShortLinkResponse.ProtoReflect.Descriptor instead.
func (*ShortLinkResponse) GetError ¶
func (x *ShortLinkResponse) GetError() string
func (*ShortLinkResponse) GetShorturl ¶
func (x *ShortLinkResponse) GetShorturl() string
func (*ShortLinkResponse) ProtoMessage ¶
func (*ShortLinkResponse) ProtoMessage()
func (*ShortLinkResponse) ProtoReflect ¶
func (x *ShortLinkResponse) ProtoReflect() protoreflect.Message
func (*ShortLinkResponse) Reset ¶
func (x *ShortLinkResponse) Reset()
func (*ShortLinkResponse) String ¶
func (x *ShortLinkResponse) String() string
type Shorturl ¶
type Shorturl struct { Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` // Строковый идентификатор Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // URL для сокращения // *config.Config ; UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Идентификатор пользователя Del bool `protobuf:"varint,5,opt,name=del,proto3" json:"del,omitempty"` // флаг, удалён ли URL пользователем или нет // contains filtered or unexported fields }
func (*Shorturl) Descriptor
deprecated
func (*Shorturl) ProtoMessage ¶
func (*Shorturl) ProtoMessage()
func (*Shorturl) ProtoReflect ¶
func (x *Shorturl) ProtoReflect() protoreflect.Message
type ShorturlResponse ¶
type ShorturlResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // URL для сокращения // contains filtered or unexported fields }
func (*ShorturlResponse) Descriptor
deprecated
func (*ShorturlResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShorturlResponse.ProtoReflect.Descriptor instead.
func (*ShorturlResponse) GetResult ¶
func (x *ShorturlResponse) GetResult() string
func (*ShorturlResponse) ProtoMessage ¶
func (*ShorturlResponse) ProtoMessage()
func (*ShorturlResponse) ProtoReflect ¶
func (x *ShorturlResponse) ProtoReflect() protoreflect.Message
func (*ShorturlResponse) Reset ¶
func (x *ShorturlResponse) Reset()
func (*ShorturlResponse) String ¶
func (x *ShorturlResponse) String() string
type Shorturls ¶
type Shorturls struct { Shorturl []*Shorturl `protobuf:"bytes,1,rep,name=shorturl,proto3" json:"shorturl,omitempty"` // contains filtered or unexported fields }
Our address book file is just one of these.
func (*Shorturls) Descriptor
deprecated
func (*Shorturls) GetShorturl ¶
func (*Shorturls) ProtoMessage ¶
func (*Shorturls) ProtoMessage()
func (*Shorturls) ProtoReflect ¶
func (x *Shorturls) ProtoReflect() protoreflect.Message
type Static ¶
type Static struct {
// contains filtered or unexported fields
}
Static -.
func (*Static) Descriptor
deprecated
func (*Static) ProtoMessage ¶
func (*Static) ProtoMessage()
func (*Static) ProtoReflect ¶
func (x *Static) ProtoReflect() protoreflect.Message
type Static_CountURLs ¶
type Static_CountURLs struct { CountUrls int32 `protobuf:"varint,1,opt,name=count_urls,json=countUrls,proto3" json:"count_urls,omitempty"` // кол-во сокращённых URL в сервисе // contains filtered or unexported fields }
func (*Static_CountURLs) Descriptor
deprecated
func (*Static_CountURLs) Descriptor() ([]byte, []int)
Deprecated: Use Static_CountURLs.ProtoReflect.Descriptor instead.
func (*Static_CountURLs) GetCountUrls ¶
func (x *Static_CountURLs) GetCountUrls() int32
func (*Static_CountURLs) ProtoMessage ¶
func (*Static_CountURLs) ProtoMessage()
func (*Static_CountURLs) ProtoReflect ¶
func (x *Static_CountURLs) ProtoReflect() protoreflect.Message
func (*Static_CountURLs) Reset ¶
func (x *Static_CountURLs) Reset()
func (*Static_CountURLs) String ¶
func (x *Static_CountURLs) String() string
type Static_CountUsers ¶
type Static_CountUsers struct { CountUsers int32 `protobuf:"varint,1,opt,name=count_users,json=countUsers,proto3" json:"count_users,omitempty"` // кол-во пользователей в сервисе // contains filtered or unexported fields }
func (*Static_CountUsers) Descriptor
deprecated
func (*Static_CountUsers) Descriptor() ([]byte, []int)
Deprecated: Use Static_CountUsers.ProtoReflect.Descriptor instead.
func (*Static_CountUsers) GetCountUsers ¶
func (x *Static_CountUsers) GetCountUsers() int32
func (*Static_CountUsers) ProtoMessage ¶
func (*Static_CountUsers) ProtoMessage()
func (*Static_CountUsers) ProtoReflect ¶
func (x *Static_CountUsers) ProtoReflect() protoreflect.Message
func (*Static_CountUsers) Reset ¶
func (x *Static_CountUsers) Reset()
func (*Static_CountUsers) String ¶
func (x *Static_CountUsers) String() string
type UnimplementedIShorturlServer ¶
type UnimplementedIShorturlServer struct { }
UnimplementedIShorturlServer must be embedded to have forward compatible implementations.
func (UnimplementedIShorturlServer) AllLink ¶
func (UnimplementedIShorturlServer) AllLink(context.Context, *AllLinkRequest) (*AllLinkResponse, error)
func (UnimplementedIShorturlServer) AllUsers ¶
func (UnimplementedIShorturlServer) AllUsers(context.Context, *AllUsersRequest) (*AllUsersResponse, error)
func (UnimplementedIShorturlServer) LongLink ¶
func (UnimplementedIShorturlServer) LongLink(context.Context, *LongLinkRequest) (*LongLinkResponse, error)
func (UnimplementedIShorturlServer) Post ¶
func (UnimplementedIShorturlServer) Post(context.Context, *PostRequest) (*PostResponse, error)
func (UnimplementedIShorturlServer) ReadService ¶
func (UnimplementedIShorturlServer) ReadService(context.Context, *ReadServiceRequest) (*ReadServiceResponse, error)
func (UnimplementedIShorturlServer) SaveService ¶
func (UnimplementedIShorturlServer) SaveService(context.Context, *SaveServiceRequest) (*SaveServiceResponse, error)
func (UnimplementedIShorturlServer) ShortLink ¶
func (UnimplementedIShorturlServer) ShortLink(context.Context, *ShortLinkRequest) (*ShortLinkResponse, error)
func (UnimplementedIShorturlServer) UserAllLink ¶
func (UnimplementedIShorturlServer) UserAllLink(context.Context, *UserAllLinkRequest) (*UserAllLinkResponse, error)
func (UnimplementedIShorturlServer) UserDelLink ¶
func (UnimplementedIShorturlServer) UserDelLink(context.Context, *UserDelLinkRequest) (*UserDelLinkResponse, error)
type UnsafeIShorturlServer ¶
type UnsafeIShorturlServer interface {
// contains filtered or unexported methods
}
UnsafeIShorturlServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IShorturlServer will result in compilation errors.
type User ¶
type User struct { UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` DelLink []string `protobuf:"bytes,2,rep,name=del_link,json=delLink,proto3" json:"del_link,omitempty"` Urls []*List `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"` // contains filtered or unexported fields }
User -.
func (*User) Descriptor
deprecated
func (*User) GetDelLink ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserAllLinkRequest ¶
type UserAllLinkRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UserAllLinkRequest) Descriptor
deprecated
func (*UserAllLinkRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserAllLinkRequest.ProtoReflect.Descriptor instead.
func (*UserAllLinkRequest) GetUser ¶
func (x *UserAllLinkRequest) GetUser() *User
func (*UserAllLinkRequest) ProtoMessage ¶
func (*UserAllLinkRequest) ProtoMessage()
func (*UserAllLinkRequest) ProtoReflect ¶
func (x *UserAllLinkRequest) ProtoReflect() protoreflect.Message
func (*UserAllLinkRequest) Reset ¶
func (x *UserAllLinkRequest) Reset()
func (*UserAllLinkRequest) String ¶
func (x *UserAllLinkRequest) String() string
type UserAllLinkResponse ¶
type UserAllLinkResponse struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // короткий url вернуть Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // ошибка // contains filtered or unexported fields }
func (*UserAllLinkResponse) Descriptor
deprecated
func (*UserAllLinkResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserAllLinkResponse.ProtoReflect.Descriptor instead.
func (*UserAllLinkResponse) GetError ¶
func (x *UserAllLinkResponse) GetError() string
func (*UserAllLinkResponse) GetUser ¶
func (x *UserAllLinkResponse) GetUser() string
func (*UserAllLinkResponse) ProtoMessage ¶
func (*UserAllLinkResponse) ProtoMessage()
func (*UserAllLinkResponse) ProtoReflect ¶
func (x *UserAllLinkResponse) ProtoReflect() protoreflect.Message
func (*UserAllLinkResponse) Reset ¶
func (x *UserAllLinkResponse) Reset()
func (*UserAllLinkResponse) String ¶
func (x *UserAllLinkResponse) String() string
type UserDelLinkRequest ¶
type UserDelLinkRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UserDelLinkRequest) Descriptor
deprecated
func (*UserDelLinkRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserDelLinkRequest.ProtoReflect.Descriptor instead.
func (*UserDelLinkRequest) GetUser ¶
func (x *UserDelLinkRequest) GetUser() *User
func (*UserDelLinkRequest) ProtoMessage ¶
func (*UserDelLinkRequest) ProtoMessage()
func (*UserDelLinkRequest) ProtoReflect ¶
func (x *UserDelLinkRequest) ProtoReflect() protoreflect.Message
func (*UserDelLinkRequest) Reset ¶
func (x *UserDelLinkRequest) Reset()
func (*UserDelLinkRequest) String ¶
func (x *UserDelLinkRequest) String() string
type UserDelLinkResponse ¶
type UserDelLinkResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // ошибка // contains filtered or unexported fields }
func (*UserDelLinkResponse) Descriptor
deprecated
func (*UserDelLinkResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserDelLinkResponse.ProtoReflect.Descriptor instead.
func (*UserDelLinkResponse) GetError ¶
func (x *UserDelLinkResponse) GetError() string
func (*UserDelLinkResponse) ProtoMessage ¶
func (*UserDelLinkResponse) ProtoMessage()
func (*UserDelLinkResponse) ProtoReflect ¶
func (x *UserDelLinkResponse) ProtoReflect() protoreflect.Message
func (*UserDelLinkResponse) Reset ¶
func (x *UserDelLinkResponse) Reset()
func (*UserDelLinkResponse) String ¶
func (x *UserDelLinkResponse) String() string