neo4j-go-driver: github.com/neo4j/neo4j-go-driver/neo4j/internal/router Index | Files

package router

import "github.com/neo4j/neo4j-go-driver/neo4j/internal/router"

Index

Package Files

errors.go readtable.go router.go

type Pool Uses

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

type ReadRoutingTableError Uses

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

func (*ReadRoutingTableError) Error Uses

func (e *ReadRoutingTableError) Error() string

type Router Uses

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

Thread safe

func New Uses

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

func (*Router) CleanUp Uses

func (r *Router) CleanUp()

func (*Router) Context Uses

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

func (*Router) Invalidate Uses

func (r *Router) Invalidate(database string)

func (*Router) Readers Uses

func (r *Router) Readers(database string) ([]string, error)

func (*Router) Writers Uses

func (r *Router) Writers(database string) ([]string, error)

Package router imports 7 packages (graph). Updated 2020-12-25. Refresh now. Tools for package owners.