Documentation ¶
Overview ¶
generated by go-extpoints -- DO NOT EDIT
Index ¶
- Variables
- func Register(component interface{}, name string) []string
- func Unregister(name string) []string
- type AdapterFactory
- type AdapterTransport
- type HttpHandler
- type Job
- type LogAdapter
- type LogRouter
- type LogsPump
- type Message
- type Route
- func (r *Route) AdapterTransport(dfault string) string
- func (r *Route) AdapterType() string
- func (r *Route) Close()
- func (r *Route) Closer() <-chan bool
- func (r *Route) MatchContainer(id, name string) bool
- func (r *Route) MatchMessage(message *Message) bool
- func (r *Route) MultiContainer() bool
- func (r *Route) OverrideCloser(closer <-chan bool)
- type RouteFileStore
- type RouteManager
- func (rm *RouteManager) Add(route *Route) error
- func (rm *RouteManager) AddFromUri(uri string) error
- func (rm *RouteManager) Get(id string) (*Route, error)
- func (rm *RouteManager) GetAll() ([]*Route, error)
- func (rm *RouteManager) Load(persistor RouteStore) error
- func (rm *RouteManager) Name() string
- func (rm *RouteManager) Remove(id string) bool
- func (rm *RouteManager) Route(route *Route, logstream chan *Message)
- func (rm *RouteManager) RoutingFrom(containerID string) bool
- func (rm *RouteManager) Run() error
- func (rm *RouteManager) Setup() error
- type RouteStore
Constants ¶
This section is empty.
Variables ¶
View Source
var AdapterFactories = &adapterFactoryExt{ newExtensionPoint(new(AdapterFactory)), }
View Source
var AdapterTransports = &adapterTransportExt{ newExtensionPoint(new(AdapterTransport)), }
View Source
var HttpHandlers = &httpHandlerExt{ newExtensionPoint(new(HttpHandler)), }
View Source
var Jobs = &jobExt{ newExtensionPoint(new(Job)), }
View Source
var LogRouters = &logRouterExt{ newExtensionPoint(new(LogRouter)), }
Functions ¶
func Unregister ¶
Types ¶
type AdapterFactory ¶
type AdapterFactory func(route *Route) (LogAdapter, error)
Extension type for adding new log adapters
type AdapterTransport ¶
Extension type for connection transports used by adapters
type LogAdapter ¶
type LogAdapter interface {
Stream(logstream chan *Message)
}
LogAdapters are streamed logs
type LogRouter ¶
type LogRouter interface { RoutingFrom(containerID string) bool Route(route *Route, logstream chan *Message) }
LogRouters send logs to LogAdapters via Routes
type LogsPump ¶
type LogsPump struct {
// contains filtered or unexported fields
}
func (*LogsPump) RoutingFrom ¶
type Route ¶
type Route struct { ID string `json:"id"` FilterID string `json:"filter_id,omitempty"` FilterName string `json:"filter_name,omitempty"` FilterSources []string `json:"filter_sources,omitempty"` Adapter string `json:"adapter"` Address string `json:"address"` Options map[string]string `json:"options,omitempty"` // contains filtered or unexported fields }
Routes represent what subset of logs should go where
func (*Route) AdapterTransport ¶
func (*Route) AdapterType ¶
func (*Route) MatchContainer ¶
func (*Route) MatchMessage ¶
func (*Route) MultiContainer ¶
func (*Route) OverrideCloser ¶
type RouteFileStore ¶
type RouteFileStore string
func (RouteFileStore) Add ¶
func (fs RouteFileStore) Add(route *Route) error
func (RouteFileStore) Filename ¶
func (fs RouteFileStore) Filename(id string) string
func (RouteFileStore) GetAll ¶
func (fs RouteFileStore) GetAll() ([]*Route, error)
func (RouteFileStore) Remove ¶
func (fs RouteFileStore) Remove(id string) bool
type RouteManager ¶
var Routes *RouteManager
func (*RouteManager) Add ¶
func (rm *RouteManager) Add(route *Route) error
func (*RouteManager) AddFromUri ¶
func (rm *RouteManager) AddFromUri(uri string) error
func (*RouteManager) GetAll ¶
func (rm *RouteManager) GetAll() ([]*Route, error)
func (*RouteManager) Load ¶
func (rm *RouteManager) Load(persistor RouteStore) error
func (*RouteManager) Name ¶
func (rm *RouteManager) Name() string
func (*RouteManager) Remove ¶
func (rm *RouteManager) Remove(id string) bool
func (*RouteManager) Route ¶
func (rm *RouteManager) Route(route *Route, logstream chan *Message)
func (*RouteManager) RoutingFrom ¶
func (rm *RouteManager) RoutingFrom(containerID string) bool
func (*RouteManager) Run ¶
func (rm *RouteManager) Run() error
func (*RouteManager) Setup ¶
func (rm *RouteManager) Setup() error
Click to show internal directories.
Click to hide internal directories.