dashboard

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Name    string                 `json:"name,omitempty"`
	OpenApi map[string]interface{} `json:"spec,omitempty"` // not sure which spec version yet
}

type Bucket added in v1.18.0

type Bucket struct {
	Name         string     `json:"name,omitempty"`
	CreationDate *time.Time `json:"creationDate,omitempty"`
}

type Dashboard added in v1.18.0

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

func New

func New(p *project.Project, envMap map[string]string) (*Dashboard, error)

func (*Dashboard) AddBucket added in v1.18.0

func (d *Dashboard) AddBucket(name string)

func (*Dashboard) AddWebsocketInfoMessage added in v1.27.0

func (d *Dashboard) AddWebsocketInfoMessage(socket string, message WebsocketMessage) error

func (*Dashboard) GetPort added in v1.30.1

func (d *Dashboard) GetPort() int

func (*Dashboard) HasStarted added in v1.30.1

func (d *Dashboard) HasStarted() bool

func (*Dashboard) Refresh added in v1.18.0

func (d *Dashboard) Refresh(opts *RefreshOptions) error

func (*Dashboard) RefreshHistory added in v1.21.0

func (d *Dashboard) RefreshHistory() error

func (*Dashboard) Serve added in v1.18.0

func (d *Dashboard) Serve(storagePlugin storage.StorageService, noBrowser bool) error

func (*Dashboard) UpdateWebsocketInfoCount added in v1.27.0

func (d *Dashboard) UpdateWebsocketInfoCount(socket string, count int) error

type DashboardResponse added in v1.19.0

type DashboardResponse struct {
	Apis                []*openapi3.T                    `json:"apis,omitempty"`
	Buckets             []string                         `json:"buckets,omitempty"`
	Schedules           []*codeconfig.TopicResult        `json:"schedules,omitempty"`
	Topics              []*codeconfig.TopicResult        `json:"topics,omitempty"`
	Websockets          []*codeconfig.WebsocketResult    `json:"websockets,omitempty"`
	ProjectName         string                           `json:"projectName,omitempty"`
	ApiAddresses        map[string]string                `json:"apiAddresses,omitempty"`
	WebsocketAddresses  map[string]string                `json:"websocketAddresses,omitempty"`
	TriggerAddress      string                           `json:"triggerAddress,omitempty"`
	StorageAddress      string                           `json:"storageAddress,omitempty"`
	BucketNotifications []*codeconfig.BucketNotification `json:"bucketNotifications,omitempty"`
	CurrentVersion      string                           `json:"currentVersion,omitempty"`
	LatestVersion       string                           `json:"latestVersion,omitempty"`
}

type RefreshOptions added in v1.18.0

type RefreshOptions struct {
	Pool               pool.WorkerPool
	TriggerAddress     string
	StorageAddress     string
	ApiAddresses       map[string]string
	WebSocketAddresses map[string]string
	ServiceListener    net.Listener
}

type WebsocketInfo added in v1.27.0

type WebsocketInfo struct {
	ConnectionCount int                `json:"connectionCount,omitempty"`
	Messages        []WebsocketMessage `json:"messages,omitempty"`
}

type WebsocketMessage added in v1.27.0

type WebsocketMessage struct {
	Data         string    `json:"data,omitempty"`
	Time         time.Time `json:"time,omitempty"`
	ConnectionID string    `json:"connectionId,omitempty"`
}

Jump to

Keyboard shortcuts

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