component

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	// contains filtered or unexported fields
}

APIServer ...

func (*APIServer) Start

func (web *APIServer) Start(ctx context.Context) error

Start the API server

type IComponent

type IComponent interface {
	// Start the component, it should be implemented as a blocking call
	// method should return gracefully when ctx is Done
	Start(ctx context.Context) error
}

IComponent interface is implemented by various services

func NewAPIServer

func NewAPIServer(config config.Config) (IComponent, error)

NewAPIServer returns a component instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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