shards

package
v0.8.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository added in v0.2.0

type MockRepository struct {
	Shards map[string]string
}

func NewMockRepository added in v0.2.0

func NewMockRepository() *MockRepository

func (*MockRepository) Lookup added in v0.2.0

func (r *MockRepository) Lookup(shardKey string) (string, error)

type Repository

type Repository interface {
	Lookup(shardKey string) (string, error)
}

func NewRepository

func NewRepository(db *sql.DB, static map[string]string) Repository

Jump to

Keyboard shortcuts

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