status

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: AGPL-3.0 Imports: 5 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SessionInfos = map[string]StatusInfo{}
{
	"terminus-org.app.terminus.io": {
		"sessionid": "",
		"orgID": 1,
		"id": "0001",
		"nickName": "username",
	},
	"terminus-org.test.terminus.io": {
		"sessionid": "",
		"orgID": 2,
		"id": "0002",
		"nickName": "username",
	}
}

Functions

func GetSessionInfos

func GetSessionInfos() (map[string]StatusInfo, error)

GetSessionInfos fetch sessions

func StoreSessionInfo

func StoreSessionInfo(host string, stat StatusInfo) error

StoreSessionInfo write session info to file ~/.dice.d/sessions

Types

type StatusInfo

type StatusInfo struct {
	SessionID string     `json:"sessionid"`
	ExpiredAt *time.Time `json:"expiredAt"`
	OrgID     uint64     `json:"orgID"`
	UserInfo
}

type UserInfo

type UserInfo struct {
	ID          string `json:"id"`
	Email       string `json:"email"`
	NickName    string `json:"nickName"`
	Enabled     bool   `json:"enabled"`
	CreatedAt   string `json:"createdAt"`
	UpdatedAt   string `json:"updatedAt"`
	LastLoginAt string `json:"lastLoginAt"`
}

Jump to

Keyboard shortcuts

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