service

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

type Endpoints struct {
	// dependencies
	SvcTracer *zipkin.Service

	ServiceName string
	// contains filtered or unexported fields
}

Endpoints implements a run.Config compatible group of Endpoints which will register themselves on the provided http service, using the provided Zipkin tracer to instrument themselves.

func (*Endpoints) FlagSet

func (ep *Endpoints) FlagSet() *run.FlagSet

FlagSet implements run.Config.

func (*Endpoints) Handler

func (ep *Endpoints) Handler() http.Handler

Handler returns an HTTP handler that can be attached to an HTTP service. The handler holds a router to the endpoints with the sub handlers.

func (*Endpoints) Name

func (ep *Endpoints) Name() string

Name implements run.Unit.

func (*Endpoints) PreRun

func (ep *Endpoints) PreRun() error

PreRun implements run.PreRunner.

func (*Endpoints) Validate

func (ep *Endpoints) Validate() error

Validate implements run.Config.

Jump to

Keyboard shortcuts

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