adminserver

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AdminPrefix    = "/__admin/"
	APIPrefix      = mustJoinURLPath(AdminPrefix, "/api/")
	UIPrefix       = mustJoinURLPath(AdminPrefix, "/ui/")
	SnapshotPrefix = mustJoinURLPath(APIPrefix, "/snapshot/")

	Endpoints = struct {
		Base           string
		API            string
		UI             string
		Echo           string
		SnapshotStream string
	}{
		Base:           AdminPrefix,
		API:            APIPrefix,
		UI:             UIPrefix,
		Echo:           mustJoinURLPath(APIPrefix, "echo"),
		SnapshotStream: mustJoinURLPath(SnapshotPrefix, "stream"),
	}
)

Functions

func BindToMux

func BindToMux(mux *http.ServeMux, topic spec.SnapshotMessageTopic) *http.ServeMux

Types

type AdminServer

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

func NewAdminServer

func NewAdminServer(snapshotTopic spec.SnapshotMessageTopic) *AdminServer

func (*AdminServer) SnapshotStream

func (s *AdminServer) SnapshotStream(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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