server

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RankDB

type RankDB struct {
	ListIDPrefix *string
	ListIDSuffix *string
	// contains filtered or unexported fields
}

RankDB contains info about the destination server

func NewRankDB

func NewRankDB(ctx context.Context, host string) (*RankDB, error)

NewRankDB will provide a backup destination that is another server. Currently lists are always overwritten on the destintion.

func (*RankDB) Save

func (r *RankDB) Save(ctx context.Context) (io.WriteCloser, error)

Save will return a writer to the restoration. Will return an error if the server cannot be reached.

Jump to

Keyboard shortcuts

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