Documentation
¶
Overview ¶
Package service provides framework-neutral HTTP integration for ODP Services.
Index ¶
Constants ¶
View Source
const ( MediaType = "application/odp+json" ProblemMediaType = "application/problem+json" MaximumRequestBodyBytes = 65_536 MaximumResourceBytes = 524_288 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
GetCollection func(context.Context, string, CatalogRequest) (*odp.Collection, error)
GetOffering func(context.Context, string, CatalogRequest) (*odp.Offering, error)
ListCollectionOfferings func(context.Context, string, CatalogRequest) (odp.Page[odp.Offering], error)
ListCollections func(context.Context, CatalogRequest) (odp.Page[odp.Collection], error)
ListOfferings func(context.Context, CatalogRequest) (odp.Page[odp.Offering], error)
SearchCollections func(context.Context, *odp.CollectionSearchRequest, CatalogRequest) (odp.Page[odp.Collection], error)
SearchOfferings func(context.Context, *odp.OfferingSearchRequest, CatalogRequest) (odp.OfferingPage[odp.Offering], error)
}
func NewStaticCatalog ¶
func NewStaticCatalog(options StaticCatalogOptions) (Catalog, error)
type CatalogRequest ¶
type Options ¶
type Options struct {
Catalog Catalog
Document odp.ServiceDocument
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Document ¶
func (service *Service) Document() odp.ServiceDocument
type StaticCatalogOptions ¶
type StaticCatalogOptions struct {
Collections []odp.Collection
Offerings []odp.Offering
}
Click to show internal directories.
Click to hide internal directories.