Documentation ¶
Index ¶
- Variables
- func NewReverseListener(backlog int) *reverseListener
- type BackoffTimer
- type ContainterInfo
- type Description
- type Key
- type Miner
- func (m *Miner) Close()
- func (m *Miner) Handshake(context.Context, *pb.HandshakeRequest) (*pb.HandshakeReply, error)
- func (m *Miner) Ping(ctx context.Context, _ *pb.PingRequest) (*pb.PingReply, error)
- func (m *Miner) Serve() error
- func (m *Miner) Start(ctx context.Context, request *pb.StartRequest) (*pb.StartReply, error)
- func (m *Miner) Stop(ctx context.Context, request *pb.StopRequest) (*pb.StopReply, error)
- type Overseer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrListenerClosed is returned to clients and servers is the listener closed ErrListenerClosed = errors.New("inmemory listener closed") )
Functions ¶
func NewReverseListener ¶
func NewReverseListener(backlog int) *reverseListener
New returns inmemory Listener
Types ¶
type BackoffTimer ¶
type BackoffTimer struct {
// contains filtered or unexported fields
}
BackoffTimer implementation
func NewBackoffTimer ¶
func NewBackoffTimer(sleep, maxsleep time.Duration) *BackoffTimer
NewBackoffTimer implementations one direction backoff policy
func (*BackoffTimer) C ¶
func (b *BackoffTimer) C() <-chan time.Time
C resets Timer and returns Timer.C
type ContainterInfo ¶
type Description ¶
Description for a target application name, version, hash etc.
type Miner ¶
type Miner struct {
// contains filtered or unexported fields
}
Miner holds information about jobs, make orders to Observer and communicates with Hub
func (*Miner) Handshake ¶
func (m *Miner) Handshake(context.Context, *pb.HandshakeRequest) (*pb.HandshakeReply, error)
Handshake reserves for the future usage
func (*Miner) Start ¶
func (m *Miner) Start(ctx context.Context, request *pb.StartRequest) (*pb.StartReply, error)
Start request from Hub makes Miner start a container
Click to show internal directories.
Click to hide internal directories.