operations

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTime

func ParseTime(s string) (time.Time, error)

Types

type Admin

type Admin struct {
	services.Service
	// contains filtered or unexported fields
}

func NewAdmin

func NewAdmin(bucketClient objstore.Bucket, logger log.Logger, maxBlockDuration time.Duration) (*Admin, error)

func (*Admin) BlockHandler

func (a *Admin) BlockHandler(w http.ResponseWriter, r *http.Request)

func (*Admin) BlocksHandler

func (a *Admin) BlocksHandler(w http.ResponseWriter, r *http.Request)

func (*Admin) TenantsHandler

func (a *Admin) TenantsHandler(w http.ResponseWriter, r *http.Request)

type Handlers

type Handlers struct {
	Bucket           objstore.Bucket
	Logger           log.Logger
	MaxBlockDuration time.Duration
}

func (*Handlers) CreateBlockDetailsHandler

func (h *Handlers) CreateBlockDetailsHandler() func(http.ResponseWriter, *http.Request)

func (*Handlers) CreateBlocksHandler

func (h *Handlers) CreateBlocksHandler() func(http.ResponseWriter, *http.Request)

func (*Handlers) CreateIndexHandler

func (h *Handlers) CreateIndexHandler() func(http.ResponseWriter, *http.Request)

Jump to

Keyboard shortcuts

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