splitter

package
Version: v0.0.0-...-712fbb6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2015 License: ISC Imports: 10 Imported by: 0

README

splitter

import "github.com/tmc/prism/splitter"

type Splitter

type Splitter struct {
    Config config.SplitterConfig
    Client *http.Client
    // contains filtered or unexported fields
}

Splitter is the type that manages an upstream and a number of downstream sinks.

func NewSplitter
func NewSplitter(config config.SplitterConfig) (*Splitter, error)

NewSplitter constructs a splitter described by a config.SplitterConfig

func (*Splitter) ServeHTTP
func (s *Splitter) ServeHTTP(rw http.ResponseWriter, r *http.Request)

ServeHTTP satisfies the net/http.Handler interface

func (*Splitter) Start
func (s *Splitter) Start(ctx context.Context) error

Start starts an http listener on the address in SplitterConfig.ListenAddress

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Splitter

type Splitter struct {
	Config config.SplitterConfig
	Client *http.Client
	// contains filtered or unexported fields
}

Splitter is the type that manages an upstream and a number of downstream sinks.

func NewSplitter

func NewSplitter(config config.SplitterConfig) (*Splitter, error)

NewSplitter constructs a splitter described by a config.SplitterConfig

func (*Splitter) ServeHTTP

func (s *Splitter) ServeHTTP(rw http.ResponseWriter, r *http.Request)

ServeHTTP satisfies the net/http.Handler interface

func (*Splitter) Start

func (s *Splitter) Start(ctx context.Context) error

Start starts an http listener on the address in SplitterConfig.ListenAddress

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL