context

package
v0.1.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

type OpenapiServiceSchemas map[string]*openapi3.T // schema name -> openapi schema

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 (ServiceSchemas) GetOpenapi

func (s ServiceSchemas) GetOpenapi() OpenapiServiceSchemas

Can be nill for some services

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL