shorten

package
v0.0.0-...-eecc4ce Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

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 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) Descriptor() ([]byte, []int)

Deprecated: Use LongLink.ProtoReflect.Descriptor instead.

func (x *LongLink) GetLink() string

func (*LongLink) ProtoMessage

func (*LongLink) ProtoMessage()

func (*LongLink) ProtoReflect

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

func (*LongLink) Reset

func (x *LongLink) Reset()

func (*LongLink) String

func (x *LongLink) String() string
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) Descriptor() ([]byte, []int)

Deprecated: Use ShortLink.ProtoReflect.Descriptor instead.

func (x *ShortLink) GetLink() string

func (*ShortLink) ProtoMessage

func (*ShortLink) ProtoMessage()

func (*ShortLink) ProtoReflect

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

func (*ShortLink) Reset

func (x *ShortLink) Reset()

func (*ShortLink) String

func (x *ShortLink) String() string

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.

type ShortenRequestServer

type ShortenRequestServer interface {
	GetShortURL(context.Context, *LongLink) (*ShortLink, error)
}

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

Jump to

Keyboard shortcuts

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