backend

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

func NewBackend

func NewBackend(name, host string, cnport int, webport int, friends []string, p *Persist) *Backend

func (*Backend) GetRemoteIp

func (s *Backend) GetRemoteIp(r *http.Request) string

func (*Backend) Start

func (s *Backend) Start()

type Persist

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

func NewPersist

func NewPersist(logPath, logname string, maxAge, rotationTime time.Duration) *Persist

func (*Persist) Add

func (p *Persist) Add(arg ...interface{})

type PlainFormatter

type PlainFormatter struct {
}

func (*PlainFormatter) Format

func (p *PlainFormatter) Format(entry *logrus.Entry) ([]byte, error)

type Transport

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

func NewTransport

func NewTransport(name string, friends []string) *Transport

func (*Transport) NeedToTransfer

func (t *Transport) NeedToTransfer(ip string) bool

func (*Transport) Transfer

func (t *Transport) Transfer(log string)

Jump to

Keyboard shortcuts

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