titan

package
v0.0.0-...-0a0144f Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

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

Core defines high-level methods for titan's external operations.

func NewCore

func NewCore(options ...CoreOption) (*Core, error)

NewCore returns a fully initialized Core.

func (*Core) Live

func (c *Core) Live(ctx context.Context) bool

Live returns true if the Core is running correctly.

func (*Core) Ready

func (c *Core) Ready(ctx context.Context) bool

Ready returns true if the Core is ready to serve requests.

type CoreOption

type CoreOption func(*Core)

CoreOption applies a parameter to a Core.

func OptionMetricsCollector

func OptionMetricsCollector(collector *metrics.Collector) CoreOption

OptionMetricsCollector sets the http.Handler to use for the metrics endpoint.

Jump to

Keyboard shortcuts

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