channels

package
v0.0.0-...-1aaf8f9 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 7 Imported by: 1

README

Channels

Maps request's host to channel and scope.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channels

type Channels struct {
	Db        *sql.DB
	HostCache cmap.ConcurrentMap
}

func NewChannels

func NewChannels(db *sql.DB) (*Channels, error)

func (*Channels) AddChannelHeaders

func (c *Channels) AddChannelHeaders(req *http.Request)

func (*Channels) LookupHost

func (c *Channels) LookupHost(host string) (*HostMapping, error)

type HostMapping

type HostMapping struct {
	ChannelId int
	Scope     string
}

Jump to

Keyboard shortcuts

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