api

package
v0.0.1-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithExportPluginSystem

func WithExportPluginSystem(e *plugin.ExportPluginSystem) option

func WithSourcePluginSystem

func WithSourcePluginSystem(e *plugin.SourcePluginSystem) option

Types

type API

type API struct {
	*http.Server
	// contains filtered or unexported fields
}

ApiServer object

func New

func New(opts ...option) *API

New returns an instance of a configured API

func (*API) Start

func (a *API) Start(ctx context.Context)

Start is a blocking event that starts the server on the configured port

func (*API) Stop

func (a *API) Stop(ctx context.Context)

Stop sends a termination signal to the api server

Jump to

Keyboard shortcuts

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