clipkg

package
Version: v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireValidGlobalFlag

func AcquireValidGlobalFlag()

AcquireValidGlobalFlag : validation global flag

func DeleteCommand

func DeleteCommand() *cobra.Command

DeleteCommand : Parse the delete sub-command

func Execute

func Execute() error

Execute : so-called init function

func GetCommand

func GetCommand() *cobra.Command

GetCommand : sub-command get.

func StatusCommand

func StatusCommand() *cobra.Command

StatusCommand : sub-command status.

func UploadCommand

func UploadCommand() *cobra.Command

UploadCommand : sub-command processing function for upload

Types

type RespStatusData

type RespStatusData struct {
	RunHealth        int  `json:"status"`
	CaptchaEnabled   bool `json:"captcha_enabled"`
	MaxExpireTime    int  `json:"max_expire"`
	FileCheckEnabled bool `json:"abuse_detection"`
}

RespStatusData : Used to serialize server returned json data

Jump to

Keyboard shortcuts

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