kernel

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kernel

type Kernel struct {
	Options Options
	// contains filtered or unexported fields
}

func New

func New(server string) *Kernel

New creates a new Prometheus kernel.

func (*Kernel) HandleComplete

func (k *Kernel) HandleComplete(req *scaffold.CompleteRequest) *scaffold.CompleteReply

func (*Kernel) HandleExecuteRequest

func (k *Kernel) HandleExecuteRequest(ctx context.Context, req *scaffold.ExecuteRequest,
	stream func(name, text string), displayData scaffold.DisplayFunc) *scaffold.ExecuteResult

func (*Kernel) HandleInspect

func (k *Kernel) HandleInspect(req *scaffold.InspectRequest) *scaffold.InspectReply

func (*Kernel) HandleIsComplete

func (k *Kernel) HandleIsComplete(req *scaffold.IsCompleteRequest) *scaffold.IsCompleteReply

func (*Kernel) HandleKernelInfo

func (k *Kernel) HandleKernelInfo() scaffold.KernelInfo

type Options

type Options struct {
	Server    string
	TimeStart time.Time
	TimeEnd   time.Time
	NowFunc   func() time.Time
}

Options holds the current options of the kernel. They can be set using commands.

func (Options) Pretty

func (o Options) Pretty() string

Jump to

Keyboard shortcuts

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