Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCityHandler ¶
func NewCityHandler(crud_city_uc crud_city_usecase.UseCase, search_uc search_usecase.UseCase) pbCity.CityServer
func NewProvinceHandler ¶
func NewProvinceHandler(crud_province_uc crud_province_usecase.UseCase) pbProvince.ProvinceServer
Types ¶
type CityHandler ¶
type CityHandler struct { pbCity.UnimplementedCityServer // contains filtered or unexported fields }
func (*CityHandler) FileDownload ¶
func (h *CityHandler) FileDownload(ctx context.Context, req *empty.Empty) (*pbCity.FileDownloadResp, error)
func (*CityHandler) Search ¶
func (h *CityHandler) Search(ctx context.Context, req *pbCity.SearchReq) (*pbCity.CityProfiles, error)
type ProvinceHandler ¶
type ProvinceHandler struct { pbProvince.UnimplementedProvinceServer // contains filtered or unexported fields }
func (*ProvinceHandler) Get ¶
func (h *ProvinceHandler) Get(ctx context.Context, req *pbProvince.GetReq) (*pbProvince.Province, error)
func (*ProvinceHandler) GetAll ¶
func (h *ProvinceHandler) GetAll(ctx context.Context, req *empty.Empty) (*pbProvince.Provinces, error)
Click to show internal directories.
Click to hide internal directories.