status

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 0 Imported by: 44

README

status

Documentation

Overview

Package status provide status for many different occasions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status string

Status is the status of something.

const (
	// Common on displaying.
	Active   Status = "active"
	Hidden   Status = "hidden"
	Inactive Status = "inactive"

	// Common on CRUD.
	Counted   Status = "counted"
	Created   Status = "created"
	Deleted   Status = "deleted"
	Listed    Status = "listed"
	Retrieved Status = "retreived"
	Updated   Status = "updated"

	// Common on state machines.
	Completed   Status = "completed"
	Failed      Status = "failed"
	Initialized Status = "initialized"
	Paused      Status = "paused"
	Runnning    Status = "running"
	Stopped     Status = "stopped"

	// Common for message brokers (pubsub).
	Published  Status = "published"
	Subscribed Status = "subscribed"

	// Metrics.
	Retried   Status = "retried"
	Succeeded Status = "succeeded"
	Total     Status = "total"

	// Errors.
	Invalid  Status = "invalid"
	Missing  Status = "missed"
	NotFound Status = "not found"
	Required Status = "required"
)

func (Status) String

func (s Status) String() string

Implement the Stringer interface.

Jump to

Keyboard shortcuts

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