logrpc

package
v0.0.0-...-945c817 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocationServerGrpc

func NewLocationServerGrpc(gserver *grpc.Server, ucase location.Usecase)

Types

type LocationServer

type LocationServer struct {
	Ucase location.Usecase
}

func (*LocationServer) GetCity

func (s *LocationServer) GetCity(context context.Context, req *location_grpc.CityID) (*location_grpc.City, error)

func (*LocationServer) GetCountry

func (*LocationServer) TransformCityData

func (s *LocationServer) TransformCityData(location *location_grpc.City) *model.City

func (*LocationServer) TransformCityRPC

func (s *LocationServer) TransformCityRPC(location *model.City) *location_grpc.City

func (*LocationServer) TransformCountryData

func (s *LocationServer) TransformCountryData(location *location_grpc.Country) *model.Country

func (*LocationServer) TransformCountryRPC

func (s *LocationServer) TransformCountryRPC(location *model.Country) *location_grpc.Country

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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