share

package
v0.0.0-...-058e3c5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadServerFromFile

func LoadServerFromFile(path string) (map[string]*Server, error)

func LoadServersFromReader

func LoadServersFromReader(reader io.Reader) (map[string]*Server, error)

func RandomServer

func RandomServer() string

func Reader

func Reader(server string, uploadedReader io.Reader) (string, error)

func SetServers

func SetServers(s map[string]*Server)

func Share

func Share(server string, filePath string) (string, error)

Types

type Server

type Server struct {
	Method         string            `yaml:"method"`
	URL            string            `yaml:"url"`
	Headers        map[string]string `yaml:"headers"`
	Body           map[string]string `yaml:"body"`
	ResponseParser parser.Chain      `yaml:"response"`
}

Jump to

Keyboard shortcuts

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