internal

package
v0.0.0-...-6b52b4a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateNotAuthenticated = State(iota)
	StateAuthenticating
	StateAuthenticated
)

Variables

This section is empty.

Functions

func GetControlClients

func GetControlClients() (schema.ControlClients, error)

GetControlClients

func Init

func Init(ctx context.Context, opts ...Option) (func(), error)

Init application initialization

func InitClientServer

func InitClientServer(ctx context.Context)

func InitHttpClient

func InitHttpClient()

func InitLogger

func InitLogger() (func(), error)

InitLogger initialize the log module

func InitMachine

func InitMachine() error

InitMachine initialize the machine id

func Run

func Run(ctx context.Context, opts ...Option) error

Run service

Types

type Option

type Option func(*options)

Option Defining configuration items

func SetConfigFile

func SetConfigFile(s string) Option

SetConfigFile setting the configuration file

func SetVersion

func SetVersion(s string) Option

SetVersion set version number

type State

type State int

Login status

type Up

type Up struct {
	UserDetail *schema.ControlUserDetail
	State      State
	UpCode     string
}

func NewUp

func NewUp() *Up

func (*Up) GetAuthUrl

func (a *Up) GetAuthUrl() (*schema.ControlMachineAuthResult, error)

func (*Up) GetLoginResult

func (a *Up) GetLoginResult(timeout int) (*schema.ControlLoginResult, error)

GetLoginResult Get login result information

func (*Up) GetUserDetail

func (a *Up) GetUserDetail() (*schema.ControlUserDetail, error)

func (*Up) ParseW3sData

func (a *Up) ParseW3sData(ctx context.Context, order *schema.ControlClient) (*schema.ClientConfig, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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