service

package
v0.0.0-...-b38e3c6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 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 Peer

type Peer struct {
	Name       string
	Client     PeerClient
	Partitions []string
}

type PeerClient

type PeerClient interface {
	DoDeadline(req *fasthttp.Request, resp *fasthttp.Response, deadline time.Time) error
}

type ServiceHandler

type ServiceHandler struct {
	Partitions map[string]loader.Partition
	// contains filtered or unexported fields
}

func (*ServiceHandler) Add

func (s *ServiceHandler) Add(ld *loader.Partition)

func (*ServiceHandler) AddOrUpdatePeer

func (s *ServiceHandler) AddOrUpdatePeer(peer *Peer)

func (*ServiceHandler) Handle

func (s *ServiceHandler) Handle(ctx *fasthttp.RequestCtx)

func (*ServiceHandler) Init

func (s *ServiceHandler) Init()

Jump to

Keyboard shortcuts

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