Documentation ¶
Index ¶
- func CreateRouter(gatewayHandler http.HandlerFunc) (http.Handler, error)
- type API
- func (s *API) DistrictsGet(ctx context.Context, request *pb.DistrictsGetRequest) (*pb.DistrictsGetResponse, error)
- func (s *API) NationalForestsGet(ctx context.Context, request *pb.NationalForestsGetRequest) (*pb.NationalForestsGetResponse, error)
- func (s *API) SiteUpsert(ctx context.Context, request *pb.SiteUpsertRequest) (*pb.SiteUpsertResponse, error)
- func (s *API) SitesGet(ctx context.Context, request *pb.SitesGetRequest) (*pb.SitesGetResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRouter ¶
func CreateRouter(gatewayHandler http.HandlerFunc) (http.Handler, error)
CreateRouter creates a new Router / Mux / http.Handler to route all traffic to the proper handlers
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) DistrictsGet ¶
func (s *API) DistrictsGet(ctx context.Context, request *pb.DistrictsGetRequest) (*pb.DistrictsGetResponse, error)
GetAllDistricts retrieves all districts or one by ID
func (*API) NationalForestsGet ¶
func (s *API) NationalForestsGet(ctx context.Context, request *pb.NationalForestsGetRequest) (*pb.NationalForestsGetResponse, error)
NationalForestsGet retrieves all national forests or one by ID
func (*API) SiteUpsert ¶
func (s *API) SiteUpsert(ctx context.Context, request *pb.SiteUpsertRequest) (*pb.SiteUpsertResponse, error)
SiteUpsert creates or updates a site in the database
func (*API) SitesGet ¶
func (s *API) SitesGet(ctx context.Context, request *pb.SitesGetRequest) (*pb.SitesGetResponse, error)
SitesGet retrieves all sites and or one by ID
Click to show internal directories.
Click to hide internal directories.