runtime

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	*user.User
	Super     bool //超级模式
	Tty       string
	Date      string
	IP        string
	Endpoints endpoint.Endpoints
	Groups    endpoint.Groups
}

Runtime runtime, parse shell cmd `who` or `who -m`

func NewRuntime

func NewRuntime() (*Runtime, error)

NewRuntime new runtime

func (*Runtime) SetEndpoints

func (r *Runtime) SetEndpoints(eps endpoint.Endpoints)

SetEndpoints set endpoints

func (*Runtime) String

func (r *Runtime) String() string

func (*Runtime) SyncGroups

func (r *Runtime) SyncGroups(kind string)

SyncGroups sync groups

Jump to

Keyboard shortcuts

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