index

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIReferences

type APIReferences struct {
	Websocket APIWebsocket `json:"websocket"`
}

type APIWebsocket

type APIWebsocket struct {
	Addr       string        `json:"addr"`
	PingPeriod time.Duration `json:"ping_period"`
}

type Index

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

func New

func New(o Options, l astikit.StdLogger) (i *Index, err error)

New creates a new index

func (*Index) Close

func (i *Index) Close() error

Close closes the index properly

func (*Index) HandleSignals

func (i *Index) HandleSignals()

HandleSignals handles signals

func (*Index) On

func (i *Index) On(c astibob.DispatchConditions, h astibob.MessageHandler)

On makes sure to handle messages with specific conditions

func (*Index) Serve

func (i *Index) Serve()

Serve spawns the server

func (*Index) Wait

func (i *Index) Wait()

Wait waits for the index to be stopped

type Options

type Options struct {
	Server astibob.ServerOptions `toml:"server"`
}

type TemplateData

type TemplateData struct {
	Runnable string
	Worker   string
}

Jump to

Keyboard shortcuts

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