soid

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearNamespaceCookie

func ClearNamespaceCookie(w http.ResponseWriter)

func HandleNamespace

func HandleNamespace(w http.ResponseWriter, r *http.Request) (string, error)

func SetNamespaceCookie

func SetNamespaceCookie(w http.ResponseWriter, namespace string)

Types

type HttpServer

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

Server ...

func NewHttpServer

func NewHttpServer() *HttpServer

NewHttpServer creates a new server

func (*HttpServer) Start

func (s *HttpServer) Start(ctx context.Context, errChan chan error)

type Server

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

Server implements the file server

func NewServer

func NewServer() *Server

NewServer returns a new Users Server

func (*Server) Start

func (s *Server) Start(ctx context.Context, errChan chan error) error

Start server.

type SolutionHandler

type SolutionHandler struct {
}

func (*SolutionHandler) Handle

func (m *SolutionHandler) Handle(next http.Handler) http.Handler

This middleware picks out request parameters and use them to set a cookie on the responses

Jump to

Keyboard shortcuts

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