h2

package
v0.0.0-...-f307310 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(service, endpoint string, request, response proto.Message) error

Call a service. No scoping/tracing yet.

Types

type Endpoint

type Endpoint struct {
	Name string
	Func func(Request) (proto.Message, Error)
	Req  proto.Message
	Resp proto.Message
}

type Error

type Error errors.Error

type Request

type Request interface {
	Data() proto.Message
}

type ServiceStarter

type ServiceStarter interface {
	AddEndpoints(e ...Endpoint) ServiceStarter
	SetName(string) ServiceStarter
	SetDescription(string) ServiceStarter
	// FromType
	// ServiceInfo() ServiceInfo
	Run() error
}

ServiceStarter starts a single service. It is a singleton, so it can't run multiple services from the same process

func NewService

func NewService(name, description string) ServiceStarter

NewService returns a ServiceStarter that you can use to start a service

Directories

Path Synopsis
i
cassandra/timeseries
Offers up a recipe built on Gossie to make dealing with time indexes simple.
Offers up a recipe built on Gossie to make dealing with time indexes simple.
dedupe
Package dedupe provides an interface to dedupe anything.
Package dedupe provides an interface to dedupe anything.
dns
memcache
This is an implementation of DeduperStorage interface for memcache.
This is an implementation of DeduperStorage interface for memcache.
nsq
trace
Trace package facilitates the recording of trace events which allow us to follow a request right the way through the H2 platform
Trace package facilitates the recording of trace events which allow us to follow a request right the way through the H2 platform
zookeeper
Package to interface Hailo systems and config with Zookeeper
Package to interface Hailo systems and config with Zookeeper
internal
p/proto/endpointsample
Package com_hailocab_kernel_platform_endpointmetrics is a generated protocol buffer package.
Package com_hailocab_kernel_platform_endpointmetrics is a generated protocol buffer package.
p/proto/error
Package com_hailocab_kernel_platform_error is a generated protocol buffer package.
Package com_hailocab_kernel_platform_error is a generated protocol buffer package.
p/proto/failure
Package com_hailocab_kernel_platform_failure is a generated protocol buffer package.
Package com_hailocab_kernel_platform_failure is a generated protocol buffer package.
p/proto/healthcheck
Package com_hailocab_kernel_platform_healthcheck is a generated protocol buffer package.
Package com_hailocab_kernel_platform_healthcheck is a generated protocol buffer package.
p/proto/jsonschema
Package com_hailocab_kernel_platform_jsonschema is a generated protocol buffer package.
Package com_hailocab_kernel_platform_jsonschema is a generated protocol buffer package.
p/proto/loadedconfig
Package com_hailocab_kernel_platform_loadedconfig is a generated protocol buffer package.
Package com_hailocab_kernel_platform_loadedconfig is a generated protocol buffer package.
p/proto/runtimesample
Package com_hailocab_kernel_platform_runtimesample is a generated protocol buffer package.
Package com_hailocab_kernel_platform_runtimesample is a generated protocol buffer package.
p/proto/schema
Package com_hailocab_kernel_platform_schema is a generated protocol buffer package.
Package com_hailocab_kernel_platform_schema is a generated protocol buffer package.
p/proto/stats
Package com_hailocab_kernel_platform_stats is a generated protocol buffer package.
Package com_hailocab_kernel_platform_stats is a generated protocol buffer package.
p/proto/trace
Package com_hailocab_kernel_platform_trace is a generated protocol buffer package.
Package com_hailocab_kernel_platform_trace is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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