mainhelpers

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const S3_BUCKET = "gotoherestatic"

Variables

This section is empty.

Functions

func AddBytesToS3

func AddBytesToS3(s *session.Session, destFileName string, buffer []byte) error

func AddFileFileToS3

func AddFileFileToS3(s *session.Session, fileDir string) error

AddFileToS3 will upload a single file to S3, it will require a pre-built aws session and will set file info like content type and encryption on the uploaded file.

func IsLocal added in v0.2.8

func IsLocal(r *http.Request) bool

func MakeMedium32cToken added in v0.1.4

func MakeMedium32cToken() (string, tokens.KnotFreeTokenPayload)

Makes a tokens.Medium token which is 32 connections

func TrySomeS3Stuff

func TrySomeS3Stuff()

func XXX_ScaleTokenPayload added in v0.3.0

func XXX_ScaleTokenPayload(token *tokens.KnotFreeTokenPayload, scale float64) *tokens.KnotFreeTokenPayload

Types

type ProxyHandler added in v0.2.8

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

func (*ProxyHandler) ServeHTTP added in v0.2.8

func (ph *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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