http

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpConfig

type HttpConfig struct {
	Enable   bool
	TimeTick time.Duration //故障检测的时间间隔,单位为秒
	Groups   map[string]HttpNodeConfig
}

type HttpNodeConfig

type HttpNodeConfig struct {
	Name   string
	Nodes  []string
	Filter []string
}

type HttpService

type HttpService struct {
	service.Service //
	// contains filtered or unexported fields
}

func NewHttpService

func NewHttpService(ctx *app.Context) *HttpService

func (*HttpService) Close

func (client *HttpService) Close()

func (*HttpService) Name

func (client *HttpService) Name() string

func (*HttpService) Reload

func (client *HttpService) Reload()

func (*HttpService) SendAll

func (client *HttpService) SendAll(table string, data []byte) bool

func (*HttpService) Start

func (client *HttpService) Start()

开始服务

Jump to

Keyboard shortcuts

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