grpcapi

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandlerGRPC

func NewHandlerGRPC(redirectService shortener.RedirectService)

Types

type ShortenRequest

type ShortenRequest struct {
	// contains filtered or unexported fields
}

func (*ShortenRequest) GetShortURL

func (sr *ShortenRequest) GetShortURL(ctx context.Context, ll *protos.LongLink) (*protos.ShortLink, error)

figure out how to have this func attached both to `ShortenRequest` and `handler`

Jump to

Keyboard shortcuts

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