dashboard

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// GrpcAddr is the address of the GRPC endpoint.
	GrpcAddr string

	// GrpcNoTls is true if no TLS is being used.
	GrpcNoTLS bool

	// DatastoreEngine is the datastore engine being used.
	DatastoreEngine string
}

Args are various arguments passed to SpiceDB.

type Dashboard

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

Dashboard is a dashboard for displaying usage information for SpiceDB.

func NewDashboard

func NewDashboard(addr string, args Args, datastore datastore.Datastore) *Dashboard

NewDashboard instantiates a new dashboard server for the given addr.

func (*Dashboard) Close

func (db *Dashboard) Close() error

Close closes the dashboard server.

func (*Dashboard) ListenAndServe

func (db *Dashboard) ListenAndServe() error

ListenAndServe runs the dashboard on the configured HTTP address.

Jump to

Keyboard shortcuts

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