Documentation ¶
Index ¶
- func NewLocationServerGrpc(gserver *grpc.Server, ucase location.Usecase)
- type LocationServer
- func (s *LocationServer) GetCity(context context.Context, req *location_grpc.CityID) (*location_grpc.City, error)
- func (s *LocationServer) GetCountry(context context.Context, req *location_grpc.CountryID) (*location_grpc.Country, error)
- func (s *LocationServer) TransformCityData(location *location_grpc.City) *model.City
- func (s *LocationServer) TransformCityRPC(location *model.City) *location_grpc.City
- func (s *LocationServer) TransformCountryData(location *location_grpc.Country) *model.Country
- func (s *LocationServer) TransformCountryRPC(location *model.Country) *location_grpc.Country
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocationServer ¶
func (*LocationServer) GetCity ¶
func (s *LocationServer) GetCity(context context.Context, req *location_grpc.CityID) (*location_grpc.City, error)
func (*LocationServer) GetCountry ¶
func (s *LocationServer) GetCountry(context context.Context, req *location_grpc.CountryID) (*location_grpc.Country, error)
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
Click to show internal directories.
Click to hide internal directories.