api

package
v0.1.3-0...-092917c Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: PostgreSQL Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestAPIServer

type RestAPIServer struct {
	APIHandler RestHandler

	http.Server
	// contains filtered or unexported fields
}

func Init

func Init(opts config.RestAPIOpts, logger log.LoggerIface) *RestAPIServer

type RestHandler

type RestHandler interface {
	IsReady() bool
	StartChain(context.Context, int) error
	StopChain(context.Context, int) error
}

RestHandler is a common interface describing the current status of a connection

Jump to

Keyboard shortcuts

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