Versions in this module Expand all Collapse all v0 v0.3.0 Aug 16, 2022 v0.2.0 Jul 28, 2022 Changes in this version + var File_proto_explore_proto protoreflect.FileDescriptor + var File_proto_publicapi_proto protoreflect.FileDescriptor + func NewExploreEndpoints() []*api.Endpoint + func NewPublicapiEndpoints() []*api.Endpoint + func RegisterExploreHandler(s server.Server, hdlr ExploreHandler, opts ...server.HandlerOption) error + func RegisterPublicapiHandler(s server.Server, hdlr PublicapiHandler, opts ...server.HandlerOption) error + type APIRequest struct + Name string + func (*APIRequest) Descriptor() ([]byte, []int) + func (*APIRequest) ProtoMessage() + func (x *APIRequest) GetName() string + func (x *APIRequest) ProtoReflect() protoreflect.Message + func (x *APIRequest) Reset() + func (x *APIRequest) String() string + type APIResponse struct + Api *PublicAPI + Summary *ExploreAPI + func (*APIResponse) Descriptor() ([]byte, []int) + func (*APIResponse) ProtoMessage() + func (x *APIResponse) GetApi() *PublicAPI + func (x *APIResponse) GetSummary() *ExploreAPI + func (x *APIResponse) ProtoReflect() protoreflect.Message + func (x *APIResponse) Reset() + func (x *APIResponse) String() string + type Endpoint struct + Name string + func (*Endpoint) Descriptor() ([]byte, []int) + func (*Endpoint) ProtoMessage() + func (x *Endpoint) GetName() string + func (x *Endpoint) ProtoReflect() protoreflect.Message + func (x *Endpoint) Reset() + func (x *Endpoint) String() string + type ExploreAPI struct + Category string + Description string + DisplayName string + Endpoints []*Endpoint + Icon string + Name string + func (*ExploreAPI) Descriptor() ([]byte, []int) + func (*ExploreAPI) ProtoMessage() + func (x *ExploreAPI) GetCategory() string + func (x *ExploreAPI) GetDescription() string + func (x *ExploreAPI) GetDisplayName() string + func (x *ExploreAPI) GetEndpoints() []*Endpoint + func (x *ExploreAPI) GetIcon() string + func (x *ExploreAPI) GetName() string + func (x *ExploreAPI) ProtoReflect() protoreflect.Message + func (x *ExploreAPI) Reset() + func (x *ExploreAPI) String() string + type ExploreHandler interface + API func(context.Context, *APIRequest, *APIResponse) error + Index func(context.Context, *IndexRequest, *IndexResponse) error + ListCategories func(context.Context, *ListCategoriesRequest, *ListCategoriesResponse) error + Pricing func(context.Context, *PricingRequest, *PricingResponse) error + Search func(context.Context, *SearchRequest, *SearchResponse) error + type ExploreService interface + API func(ctx context.Context, in *APIRequest, opts ...client.CallOption) (*APIResponse, error) + Index func(ctx context.Context, in *IndexRequest, opts ...client.CallOption) (*IndexResponse, error) + ListCategories func(ctx context.Context, in *ListCategoriesRequest, opts ...client.CallOption) (*ListCategoriesResponse, error) + Pricing func(ctx context.Context, in *PricingRequest, opts ...client.CallOption) (*PricingResponse, error) + Search func(ctx context.Context, in *SearchRequest, opts ...client.CallOption) (*SearchResponse, error) + func NewExploreService(name string, c client.Client) ExploreService + type GetRequest struct + Id string + Name string + func (*GetRequest) Descriptor() ([]byte, []int) + func (*GetRequest) ProtoMessage() + func (x *GetRequest) GetId() string + func (x *GetRequest) GetName() string + func (x *GetRequest) ProtoReflect() protoreflect.Message + func (x *GetRequest) Reset() + func (x *GetRequest) String() string + type GetResponse struct + Api *PublicAPI + func (*GetResponse) Descriptor() ([]byte, []int) + func (*GetResponse) ProtoMessage() + func (x *GetResponse) GetApi() *PublicAPI + func (x *GetResponse) ProtoReflect() protoreflect.Message + func (x *GetResponse) Reset() + func (x *GetResponse) String() string + type IndexRequest struct + Limit int64 + Offset int64 + func (*IndexRequest) Descriptor() ([]byte, []int) + func (*IndexRequest) ProtoMessage() + func (x *IndexRequest) GetLimit() int64 + func (x *IndexRequest) GetOffset() int64 + func (x *IndexRequest) ProtoReflect() protoreflect.Message + func (x *IndexRequest) Reset() + func (x *IndexRequest) String() string + type IndexResponse struct + Apis []*ExploreAPI + func (*IndexResponse) Descriptor() ([]byte, []int) + func (*IndexResponse) ProtoMessage() + func (x *IndexResponse) GetApis() []*ExploreAPI + func (x *IndexResponse) ProtoReflect() protoreflect.Message + func (x *IndexResponse) Reset() + func (x *IndexResponse) String() string + type ListCategoriesRequest struct + func (*ListCategoriesRequest) Descriptor() ([]byte, []int) + func (*ListCategoriesRequest) ProtoMessage() + func (x *ListCategoriesRequest) ProtoReflect() protoreflect.Message + func (x *ListCategoriesRequest) Reset() + func (x *ListCategoriesRequest) String() string + type ListCategoriesResponse struct + Categories []string + func (*ListCategoriesResponse) Descriptor() ([]byte, []int) + func (*ListCategoriesResponse) ProtoMessage() + func (x *ListCategoriesResponse) GetCategories() []string + func (x *ListCategoriesResponse) ProtoReflect() protoreflect.Message + func (x *ListCategoriesResponse) Reset() + func (x *ListCategoriesResponse) String() string + type ListRequest struct + func (*ListRequest) Descriptor() ([]byte, []int) + func (*ListRequest) ProtoMessage() + func (x *ListRequest) ProtoReflect() protoreflect.Message + func (x *ListRequest) Reset() + func (x *ListRequest) String() string + type ListResponse struct + Apis []*PublicAPI + func (*ListResponse) Descriptor() ([]byte, []int) + func (*ListResponse) ProtoMessage() + func (x *ListResponse) GetApis() []*PublicAPI + func (x *ListResponse) ProtoReflect() protoreflect.Message + func (x *ListResponse) Reset() + func (x *ListResponse) String() string + type PricingItem struct + DisplayName string + Icon string + Id string + Name string + Pricing map[string]int64 + Quotas map[string]int64 + func (*PricingItem) Descriptor() ([]byte, []int) + func (*PricingItem) ProtoMessage() + func (x *PricingItem) GetDisplayName() string + func (x *PricingItem) GetIcon() string + func (x *PricingItem) GetId() string + func (x *PricingItem) GetName() string + func (x *PricingItem) GetPricing() map[string]int64 + func (x *PricingItem) GetQuotas() map[string]int64 + func (x *PricingItem) ProtoReflect() protoreflect.Message + func (x *PricingItem) Reset() + func (x *PricingItem) String() string + type PricingRequest struct + func (*PricingRequest) Descriptor() ([]byte, []int) + func (*PricingRequest) ProtoMessage() + func (x *PricingRequest) ProtoReflect() protoreflect.Message + func (x *PricingRequest) Reset() + func (x *PricingRequest) String() string + type PricingResponse struct + Prices []*PricingItem + func (*PricingResponse) Descriptor() ([]byte, []int) + func (*PricingResponse) ProtoMessage() + func (x *PricingResponse) GetPrices() []*PricingItem + func (x *PricingResponse) ProtoReflect() protoreflect.Message + func (x *PricingResponse) Reset() + func (x *PricingResponse) String() string + type PublicAPI struct + Category string + Description string + DisplayName string + ExamplesJson string + Icon string + Id string + Name string + OpenApiJson string + OwnerId string + PostmanJson string + Pricing map[string]int64 + Quotas map[string]int64 + func (*PublicAPI) Descriptor() ([]byte, []int) + func (*PublicAPI) ProtoMessage() + func (x *PublicAPI) GetCategory() string + func (x *PublicAPI) GetDescription() string + func (x *PublicAPI) GetDisplayName() string + func (x *PublicAPI) GetExamplesJson() string + func (x *PublicAPI) GetIcon() string + func (x *PublicAPI) GetId() string + func (x *PublicAPI) GetName() string + func (x *PublicAPI) GetOpenApiJson() string + func (x *PublicAPI) GetOwnerId() string + func (x *PublicAPI) GetPostmanJson() string + func (x *PublicAPI) GetPricing() map[string]int64 + func (x *PublicAPI) GetQuotas() map[string]int64 + func (x *PublicAPI) ProtoReflect() protoreflect.Message + func (x *PublicAPI) Reset() + func (x *PublicAPI) String() string + type PublicapiHandler interface + Get func(context.Context, *GetRequest, *GetResponse) error + List func(context.Context, *ListRequest, *ListResponse) error + Publish func(context.Context, *PublishRequest, *PublishResponse) error + Remove func(context.Context, *RemoveRequest, *RemoveResponse) error + Update func(context.Context, *UpdateRequest, *UpdateResponse) error + type PublicapiService interface + Get func(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*GetResponse, error) + List func(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error) + Publish func(ctx context.Context, in *PublishRequest, opts ...client.CallOption) (*PublishResponse, error) + Remove func(ctx context.Context, in *RemoveRequest, opts ...client.CallOption) (*RemoveResponse, error) + Update func(ctx context.Context, in *UpdateRequest, opts ...client.CallOption) (*UpdateResponse, error) + func NewPublicapiService(name string, c client.Client) PublicapiService + type PublishRequest struct + Api *PublicAPI + func (*PublishRequest) Descriptor() ([]byte, []int) + func (*PublishRequest) ProtoMessage() + func (x *PublishRequest) GetApi() *PublicAPI + func (x *PublishRequest) ProtoReflect() protoreflect.Message + func (x *PublishRequest) Reset() + func (x *PublishRequest) String() string + type PublishResponse struct + Api *PublicAPI + func (*PublishResponse) Descriptor() ([]byte, []int) + func (*PublishResponse) ProtoMessage() + func (x *PublishResponse) GetApi() *PublicAPI + func (x *PublishResponse) ProtoReflect() protoreflect.Message + func (x *PublishResponse) Reset() + func (x *PublishResponse) String() string + type RemoveRequest struct + Id string + Name string + func (*RemoveRequest) Descriptor() ([]byte, []int) + func (*RemoveRequest) ProtoMessage() + func (x *RemoveRequest) GetId() string + func (x *RemoveRequest) GetName() string + func (x *RemoveRequest) ProtoReflect() protoreflect.Message + func (x *RemoveRequest) Reset() + func (x *RemoveRequest) String() string + type RemoveResponse struct + func (*RemoveResponse) Descriptor() ([]byte, []int) + func (*RemoveResponse) ProtoMessage() + func (x *RemoveResponse) ProtoReflect() protoreflect.Message + func (x *RemoveResponse) Reset() + func (x *RemoveResponse) String() string + type SearchRequest struct + Categories []string + Category string + SearchTerm string + func (*SearchRequest) Descriptor() ([]byte, []int) + func (*SearchRequest) ProtoMessage() + func (x *SearchRequest) GetCategories() []string + func (x *SearchRequest) GetCategory() string + func (x *SearchRequest) GetSearchTerm() string + func (x *SearchRequest) ProtoReflect() protoreflect.Message + func (x *SearchRequest) Reset() + func (x *SearchRequest) String() string + type SearchResponse struct + Apis []*ExploreAPI + func (*SearchResponse) Descriptor() ([]byte, []int) + func (*SearchResponse) ProtoMessage() + func (x *SearchResponse) GetApis() []*ExploreAPI + func (x *SearchResponse) ProtoReflect() protoreflect.Message + func (x *SearchResponse) Reset() + func (x *SearchResponse) String() string + type UpdateRequest struct + Api *PublicAPI + func (*UpdateRequest) Descriptor() ([]byte, []int) + func (*UpdateRequest) ProtoMessage() + func (x *UpdateRequest) GetApi() *PublicAPI + func (x *UpdateRequest) ProtoReflect() protoreflect.Message + func (x *UpdateRequest) Reset() + func (x *UpdateRequest) String() string + type UpdateResponse struct + Api *PublicAPI + func (*UpdateResponse) Descriptor() ([]byte, []int) + func (*UpdateResponse) ProtoMessage() + func (x *UpdateResponse) GetApi() *PublicAPI + func (x *UpdateResponse) ProtoReflect() protoreflect.Message + func (x *UpdateResponse) Reset() + func (x *UpdateResponse) String() string