Documentation ¶
Index ¶
- Constants
- type AllSchemas
- type OpenapiServiceSchemas
- type SchemaContext
- func (c *SchemaContext) GetAllSchemas() AllSchemas
- func (sc SchemaContext) GetApiServices() map[string]*ServiceSchemas
- func (sc SchemaContext) GetMifySchema(serviceName string) *mifyconfig.ServiceConfig
- func (c *SchemaContext) GetServiceSchemas(serviceName string) *ServiceSchemas
- func (sc SchemaContext) MustGetMifySchema(serviceName string) *mifyconfig.ServiceConfig
- func (c *SchemaContext) MustGetServiceSchemas(serviceName string) *ServiceSchemas
- type ServiceSchemas
Constants ¶
View Source
const ( MainSchemaName = "api.yaml" GeneratedSchemaName = "api_generated.yaml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllSchemas ¶
type AllSchemas map[string]*ServiceSchemas // service name -> schemas
type OpenapiServiceSchemas ¶
func (OpenapiServiceSchemas) GetGeneratedSchema ¶
func (s OpenapiServiceSchemas) GetGeneratedSchema() *openapi3.T
func (OpenapiServiceSchemas) GetMainSchema ¶
func (s OpenapiServiceSchemas) GetMainSchema() *openapi3.T
type SchemaContext ¶
type SchemaContext struct {
// contains filtered or unexported fields
}
func NewSchemaContext ¶
func NewSchemaContext(schemas AllSchemas) *SchemaContext
func (*SchemaContext) GetAllSchemas ¶
func (c *SchemaContext) GetAllSchemas() AllSchemas
func (SchemaContext) GetApiServices ¶
func (sc SchemaContext) GetApiServices() map[string]*ServiceSchemas
func (SchemaContext) GetMifySchema ¶
func (sc SchemaContext) GetMifySchema(serviceName string) *mifyconfig.ServiceConfig
func (*SchemaContext) GetServiceSchemas ¶
func (c *SchemaContext) GetServiceSchemas(serviceName string) *ServiceSchemas
func (SchemaContext) MustGetMifySchema ¶
func (sc SchemaContext) MustGetMifySchema(serviceName string) *mifyconfig.ServiceConfig
func (*SchemaContext) MustGetServiceSchemas ¶
func (c *SchemaContext) MustGetServiceSchemas(serviceName string) *ServiceSchemas
type ServiceSchemas ¶
type ServiceSchemas struct {
// contains filtered or unexported fields
}
func NewServiceSchemas ¶
func NewServiceSchemas(openApi OpenapiServiceSchemas, mify *mifyconfig.ServiceConfig) *ServiceSchemas
func (ServiceSchemas) GetMify ¶
func (s ServiceSchemas) GetMify() *mifyconfig.ServiceConfig
func (ServiceSchemas) GetOpenapi ¶
func (s ServiceSchemas) GetOpenapi() OpenapiServiceSchemas
Can be nill for some services
Click to show internal directories.
Click to hide internal directories.