common

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UIStatusWarning    = "warning"
	UIStatusProcessing = "processing"
	UIStatusSuccess    = "success"
	UIStatusError      = "error"
	UIStatusDefault    = "default"
)

Variables

This section is empty.

Functions

func GenerateUrlQueryParams

func GenerateUrlQueryParams(obj interface{}) (string, error)

func GetUIIssueState

func GetUIIssueState(stateBelong apistructs.IssueStateBelong) string

func MilliFromTime

func MilliFromTime(t time.Time) int64

func UpdatedTime

func UpdatedTime(ctx context.Context, activeTime time.Time) string

Types

type TimeMilliInDays

type TimeMilliInDays struct {
	Today               int64
	Tomorrow            int64
	TheDayAfterTomorrow int64
	SevenDays           int64
	ThirtyDays          int64
}

Jump to

Keyboard shortcuts

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