Documentation ¶
Overview ¶
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
View Source
const ( // Black black Black = "\033[1;30m%s\033[0m" // Red red Red = "\033[1;31m%s\033[0m" // Green green Green = "\033[1;32m%s\033[0m" // Yellow yellow Yellow = "\033[1;33m%s\033[0m" // Purple purple Purple = "\033[1;34m%s\033[0m" // Magenta magenta Magenta = "\033[1;35m%s\033[0m" // Teal teal Teal = "\033[1;36m%s\033[0m" // White white White = "\033[1;37m%s\033[0m" // DebugColor debug color DebugColor = "\033[0;36m%s\033[0m" )
Variables ¶
View Source
var Version = ""
Version build ldflags
Functions ¶
Types ¶
type AlfredOutput ¶
type AlfredOutput struct { Title string `json:"title"` Subtitle string `json:"subtitle"` Arg string `json:"arg"` Uid string `json:"uid"` Icon struct { Type string `json:"type"` Path string `json:"path"` } `json:"icon"` Valid bool `json:"valid"` Text struct { Copy string `json:"copy"` } `json:"text"` Code string `json:"-"` ExpireSec int `json:"-"` }
AlfredOutput alfred workflow output
type DeviceRegistration ¶
type DeviceRegistration struct { UserID uint64 `json:"user_id,omitempty"` DeviceID uint64 `json:"device_id,omitempty"` Seed string `json:"seed,omitempty"` APIKey string `json:"api_key,omitempty"` MainPassword string `json:"main_password,omitempty"` }
DeviceRegistration device register info
func LoadExistingDeviceInfo ¶
func LoadExistingDeviceInfo() (devInfo DeviceRegistration, err error)
LoadExistingDeviceInfo ...
Click to show internal directories.
Click to hide internal directories.