router

package
v4.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool interface {
	Borrow(ctx context.Context, servers []string, wait bool, boltLogger log.BoltLogger) (db.Connection, error)
	Return(c db.Connection)
}

type ReadRoutingTableError

type ReadRoutingTableError struct {
	// contains filtered or unexported fields
}

func (*ReadRoutingTableError) Error

func (e *ReadRoutingTableError) Error() string

type Router

type Router struct {
	// contains filtered or unexported fields
}

Thread safe

func New

func New(rootRouter string, getRouters func() []string, routerContext map[string]string, pool Pool, logger log.Logger, logId string) *Router

func (*Router) CleanUp

func (r *Router) CleanUp()

func (*Router) Context

func (r *Router) Context() map[string]string

func (*Router) Invalidate

func (r *Router) Invalidate(database string)

func (*Router) Readers

func (r *Router) Readers(ctx context.Context, bookmarks []string, database string, boltLogger log.BoltLogger) ([]string, error)

func (*Router) Writers

func (r *Router) Writers(ctx context.Context, bookmarks []string, database string, boltLogger log.BoltLogger) ([]string, error)

Jump to

Keyboard shortcuts

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