api

package
v0.0.0-...-78a1d10 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pull

func Pull(input io.ReadWriter, output io.ReadWriter)

Pull requests and downloads a given dump

func Push

func Push(input io.ReadWriter, output io.ReadWriter, custemKey string)

Push creates and uploads a new dump

Types

type Ctx

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

Ctx represents a dump server

type PushRequest

type PushRequest struct {
	Name      string    `json:"name"`
	Extension string    `json:"extension"`
	Key       string    `json:"key"`
	CreatedAt time.Time `json:"createdAt"`
	Data      string    `json:"data"`
}

PushRequest represents the body of a /push request

Jump to

Keyboard shortcuts

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