vampadapter

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Addr() string
	Close() error
	Run(shutdown chan error)
}

Server is basic server interface

func NewVampAdapter

func NewVampAdapter(addr string) (Server, error)

NewVampAdapter creates a new IBP adapter that listens at provided port.

type VampAdapter

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

VampAdapter supports logentry template.

func (*VampAdapter) Addr

func (s *VampAdapter) Addr() string

Addr returns the listening address of the server

func (*VampAdapter) Close

func (s *VampAdapter) Close() error

Close gracefully shuts down the server; used for testing

func (*VampAdapter) HandleLogEntry

HandleLogEntry records log entries

func (*VampAdapter) Run

func (s *VampAdapter) Run(shutdown chan error)

Run starts the server run

Jump to

Keyboard shortcuts

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