storage

package
v0.0.0-...-cc2ffcb Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package storage handles loading a photosrv storage config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shard

type Shard struct {
	Name string

	Weight    int
	Endpoints []string
	// contains filtered or unexported fields
}

Shard is a photostorage shard

func LoadShards

func LoadShards(conf simpleconf.Config, configBase string, dc string) (chooser shardedkv.Chooser, shards []Shard, err error)

LoadShards extracts a chooser and list of shards from the provided config

Jump to

Keyboard shortcuts

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