server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSAllowOriginAllMiddleware

func CORSAllowOriginAllMiddleware(next http.HandlerFunc) http.HandlerFunc

CORSAllowOriginAllMiddleware sets the header for Access-Control-Allow-Origin = "*"

func OptionsPreflightAllow

func OptionsPreflightAllow(w http.ResponseWriter) http.ResponseWriter

OptionsPreflightAllow sets the header for Access-Control-Allow-Origin = "*"

Types

type Options

type Options struct {
	ListenAddress string
	ListenPort    int32
	Endpoint      string
	AccessKey     string
	SecretKey     string
	Bucket        string
}

type Server

type Server struct {
	Options Options
}

func (*Server) NewServer

func (s *Server) NewServer(dev bool) (*http.Server, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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