openapiportal

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package openapiportal implements the openapiportal.core microservice.

The OpenAPI microservice lists links to the OpenAPI endpoint of all microservices that provide one on the requested port.

Index

Constants

View Source
const Hostname = "openapiportal.core"

Hostname is the default hostname of the microservice: openapiportal.core.

View Source
const SourceCodeSHA256 = "33fcef9ff87afb9a3c018645522b1942bc6dc7dd1f381db37443db3a1c97a819"
View Source
const Timestamp = "2024-08-01T15:49:25.351407Z"
View Source
const Version = 105

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock = intermediate.Mock

Mock is a mockable version of the openapiportal.core microservice, allowing functions, event sinks and web handlers to be mocked.

func NewMock

func NewMock() *Mock

New creates a new mockable version of the microservice.

type Service

type Service struct {
	*intermediate.Intermediate // DO NOT REMOVE
}

Service implements the openapiportal.core microservice.

The OpenAPI microservice lists links to the OpenAPI endpoint of all microservices that provide one on the requested port.

func NewService

func NewService() *Service

NewService creates a new openapiportal.core microservice.

func (*Service) Init

func (svc *Service) Init(initializer func(svc *Service)) *Service

Init enables a single-statement pattern for initializing the microservice.

svc.Init(func(svc Service) {
	svc.SetGreeting("Hello")
})

func (*Service) List

func (svc *Service) List(w http.ResponseWriter, r *http.Request) (err error)

List displays links to the OpenAPI endpoint of all microservices that provide one on the request's port.

func (*Service) OnShutdown

func (svc *Service) OnShutdown(ctx context.Context) (err error)

OnShutdown is called when the microservice is shut down.

func (*Service) OnStartup

func (svc *Service) OnStartup(ctx context.Context) (err error)

OnStartup is called when the microservice is started up.

Directories

Path Synopsis
app
Package intermediate serves as the foundation of the openapiportal.core microservice.
Package intermediate serves as the foundation of the openapiportal.core microservice.
Package openapiportalapi implements the public API of the openapiportal.core microservice, including clients and data structures.
Package openapiportalapi implements the public API of the openapiportal.core microservice, including clients and data structures.

Jump to

Keyboard shortcuts

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