putlib

package module
v0.0.0-...-4aba3cf Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Overview

putlib document

putlib project main.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitKey

func InitKey() []byte

Types

type Info

type Info struct {
	Hash      string
	MediaType string
}

type PutConfig

type PutConfig struct {
	JsonOutput              bool
	ForceGenerateThumbnails bool
	// contains filtered or unexported fields
}

func (*PutConfig) AddressOf

func (pc *PutConfig) AddressOf(input io.Reader) (string, error)

func (*PutConfig) AddressOfFile

func (pc *PutConfig) AddressOfFile(file string) (string, error)

func (*PutConfig) Upload

func (pc *PutConfig) Upload(url string, file string) (string, string)

func (*PutConfig) UploadFile

func (pc *PutConfig) UploadFile(url string, path string) (string, error)

func (*PutConfig) UploadMultipart

func (pc *PutConfig) UploadMultipart(url string, f io.Reader, path string) (string, error)

func (*PutConfig) ValidateAndPrint

func (pc *PutConfig) ValidateAndPrint(h string, file string, output string) (string, string)

Jump to

Keyboard shortcuts

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