coreservices

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContactInfo

type ContactInfo struct {
	Name string
	Url  string
}

type CoreService

type CoreService interface {
	OpenAPI() *openapi3.T
	SetContact(*ContactInfo)
	SetLicense(*LicenseInfo)
	SetContentTypeUrlEncoder(*coremodels.ContentTypeUrlEncoding)
	ContentTypeUrlEncoder() *coremodels.ContentTypeUrlEncoding

	// Method to rebuild the OpenAPI specification. It is recommended to call
	// this method, in order to easy error handling.
	RebuildOpenAPI([]interface{})
}

func NewCoreService

func NewCoreService() CoreService

type LicenseInfo

type LicenseInfo struct {
	Name string
	Url  string
}

type OpenAPIBuilder

type OpenAPIBuilder interface {
	OpenAPI() *openapi3.T
	Build([]interface{}) *openapi3.T
	AddComponentParameter(parameterName string, parameter *openapi3.Parameter)
}

func NewOpenAPIBuilder

func NewOpenAPIBuilder(basetemplate *openapi3.T, loader *openapi3.Loader, config coremodels.Serverconfig) OpenAPIBuilder

type OpenAPIService

type OpenAPIService interface {
	BuildOpenAPISpecification(OpenAPIBuilder)
}

Jump to

Keyboard shortcuts

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