Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_shortener_proto protoreflect.FileDescriptor
Functions ¶
func RegisterShortenRequestServer ¶
func RegisterShortenRequestServer(s *grpc.Server, srv ShortenRequestServer)
Types ¶
type LongLink ¶
type LongLink struct { Link string `protobuf:"bytes,1,opt,name=Link,json=link,proto3" json:"Link,omitempty"` // contains filtered or unexported fields }
func (*LongLink) Descriptor
deprecated
func (*LongLink) ProtoMessage ¶
func (*LongLink) ProtoMessage()
func (*LongLink) ProtoReflect ¶
func (x *LongLink) ProtoReflect() protoreflect.Message
type ShortLink ¶
type ShortLink struct { Link string `protobuf:"bytes,1,opt,name=Link,json=link,proto3" json:"Link,omitempty"` // contains filtered or unexported fields }
func (*ShortLink) Descriptor
deprecated
func (*ShortLink) ProtoMessage ¶
func (*ShortLink) ProtoMessage()
func (*ShortLink) ProtoReflect ¶
func (x *ShortLink) ProtoReflect() protoreflect.Message
type ShortenRequestClient ¶
type ShortenRequestClient interface {
GetShortURL(ctx context.Context, in *LongLink, opts ...grpc.CallOption) (*ShortLink, error)
}
ShortenRequestClient is the client API for ShortenRequest service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewShortenRequestClient ¶
func NewShortenRequestClient(cc grpc.ClientConnInterface) ShortenRequestClient
type ShortenRequestServer ¶
ShortenRequestServer is the server API for ShortenRequest service.
type UnimplementedShortenRequestServer ¶
type UnimplementedShortenRequestServer struct { }
UnimplementedShortenRequestServer can be embedded to have forward compatible implementations.
func (*UnimplementedShortenRequestServer) GetShortURL ¶
Click to show internal directories.
Click to hide internal directories.