grpcAdapter

package
v0.0.0-...-81386c3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcHandler

type GrpcHandler struct {
	UseCase shortener.UseCaseShortener
}

func NewGrpcHandler

func NewGrpcHandler(useCase shortener.UseCaseShortener) *GrpcHandler

func (*GrpcHandler) GetCode

func (h *GrpcHandler) GetCode(ctx context.Context, req *pb.Url) (*pb.Code, error)

func (*GrpcHandler) GetUrl

func (h *GrpcHandler) GetUrl(ctx context.Context, req *pb.Code) (*pb.Url, error)

func (*GrpcHandler) Run

func (h *GrpcHandler) Run(address string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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