Documentation ¶
Index ¶
- Constants
- func AddBytesToS3(s *session.Session, destFileName string, buffer []byte) error
- func AddFileFileToS3(s *session.Session, fileDir string) error
- func IsLocal(r *http.Request) bool
- func MakeMedium32cToken() (string, tokens.KnotFreeTokenPayload)
- func TrySomeS3Stuff()
- func XXX_ScaleTokenPayload(token *tokens.KnotFreeTokenPayload, scale float64) *tokens.KnotFreeTokenPayload
- type ProxyHandler
Constants ¶
View Source
const S3_BUCKET = "gotoherestatic"
Variables ¶
This section is empty.
Functions ¶
func AddFileFileToS3 ¶
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 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)
Click to show internal directories.
Click to hide internal directories.