api

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(size int, metrics *metrics.Metrics) *api

Types

type API

type API interface {
	String() string

	Start() error
	Stop() error
	Shutdown()
	Done() bool
	Errors() <-chan error

	Signal(<-chan interface{}) <-chan interface{}

	EnqueueSQE(*bus.SQE[t_api.Request, t_api.Response])
	DequeueSQE(int) []*bus.SQE[t_api.Request, t_api.Response]
	EnqueueCQE(*bus.CQE[t_api.Request, t_api.Response])
	DequeueCQE(<-chan *bus.CQE[t_api.Request, t_api.Response]) *bus.CQE[t_api.Request, t_api.Response]
}

type Subsystem

type Subsystem interface {
	String() string
	Kind() string
	Addr() string
	Start(chan<- error)
	Stop() error
}

Jump to

Keyboard shortcuts

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