api

package
v0.0.0-...-edd4e79 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeNotFound = iota + 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(addr string, option ...Option) *API

func (*API) Name

func (a *API) Name() string

func (*API) Start

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

type Option

type Option func(*API)

func WithClientManager

func WithClientManager(manager *broker.ClientManager) Option

func WithSessionManager

func WithSessionManager(sessionManager broker2.SessionManager) Option

func WithStore

func WithStore(store broker2.Store) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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