revconnapi

package
v0.0.0-...-5fac4bd Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func New

func New(cfg *Config, exchange ExchangeService) *API

func (*API) ConnectionHandler

func (a *API) ConnectionHandler(id uint64, conn net.Conn) error

func (*API) Run

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

type Config

type Config struct {
	Listen string
}

type ExchangeService

type ExchangeService interface {
	AddConnection(id uint64, conn net.Conn) error
}

Jump to

Keyboard shortcuts

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