api

package
v0.0.0-...-908ee96 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(db *db.Database, s *config.Shards) *Server

func (*Server) DeleteExtraKeysHandler

func (s *Server) DeleteExtraKeysHandler(w http.ResponseWriter, r *http.Request)

func (*Server) DeleteReplicaKey

func (s *Server) DeleteReplicaKey(w http.ResponseWriter, r *http.Request)

func (*Server) GetHandler

func (s *Server) GetHandler(w http.ResponseWriter, r *http.Request)

func (*Server) GetOldKey

func (s *Server) GetOldKey(w http.ResponseWriter, r *http.Request)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(addr string) error

func (*Server) SetHandler

func (s *Server) SetHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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