api

package
v0.0.0-...-a4f9c1c Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 9 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 NewAdapterApi

func NewAdapterApi(ctx context.Context, conf *Config, adapter adapter.Adapter, errCh chan<- error) (*API, func(), error)

func (*API) HandleNewLog

func (a *API) HandleNewLog(ctx *atr.RequestCtx) error

func (*API) Run

func (a *API) Run() error

type Config

type Config struct {
	Addr      string
	Network   string
	MaxDbConn uint16
	Timeout   time.Duration
}

type Context

type Context struct {
	*atr.RequestCtx
	Ctx context.Context
}

Jump to

Keyboard shortcuts

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