Documentation
¶
Index ¶
Constants ¶
View Source
const ( DIR_PERMISSION = 0755 FILE_PERMISSION = 0644 BOOKMARKS_FILE_NAME = ".bookmarks" )
Bookmarks configuration file
View Source
const ( HISTORY_FILE_NAME = ".history" HISTORY_MAX_SIZE = 50 )
View Source
const BANNER = "" /* 848-byte string literal not displayed */
Variables ¶
View Source
var APP_VERSION = "dev"
View Source
var ( TerminalTheme = Theme{ Name: "Terminal", Colors: ColorValue{ Error: tcell.GetColor("red"), Warning: tcell.GetColor("darkred"), Notice: tcell.GetColor("silver"), WindowColor: tcell.GetColor("#444444"), ModalColor: tcell.GetColor("#111111"), CommandBarColor: tcell.GetColor("#333333"), }, Style: ComponentStyle{ ButtonStyle: tcell.StyleDefault. Background(tcell.GetColor("#5500FF")), PlaceholderStyle: tcell.StyleDefault. Background(tcell.GetColor("#666666")).Italic(true), FieldStyle: tcell.StyleDefault. Background(tcell.GetColor("#666666")), ListMainTextStyle: tcell.StyleDefault. Background(tcell.GetColor("#444444")), ListBorderStyle: tcell.StyleDefault. Background(tcell.GetColor("#444444")), TextAreaStyle: tcell.StyleDefault. Background(tcell.GetColor("#444444")), }, } )
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
AuthType AuthType `json:"auth_type"`
BearerToken *AuthValueBearerToken `json:"bearer_token"`
AuthTypeAPIKey *AuthValueTypeAPIKey `json:"api_key"`
}
type AuthValueBearerToken ¶
type AuthValueBearerToken struct {
Token string `json:"token"`
}
type AuthValueTypeAPIKey ¶
type ColorValue ¶
type ComponentStyle ¶
type HistoryEntry ¶ added in v0.2.0
type HistoryEntry struct {
Session Session `json:"session"`
InvokedAt time.Time `json:"invoked_at"`
}
HistoryEntry represents a single recorded RPC invocation
type Session ¶
type Session struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
ServerURL string `json:"server_url"`
Authorization *Auth `json:"authorization"`
ActiveConnection *grpc.ClientConn `json:"-"`
AvailableServices []string `json:"-"`
SelectedMethod *string `json:"selected_method"`
AvailableMethods []string `json:"-"`
RequestPayload string `json:"request_payload"`
DescriptorSource grpcurl.DescriptorSource `json:"-"`
Metadata []*Metadata `json:"metadata"`
AllowUnknownFields bool `json:"allow_unknown_fields"`
// SSL Certificates
EnableTLS bool `json:"enable_tls"`
SSLCert *Cert `json:"ssl_cert"`
InsecureSkipVerify bool `json:"insecure_skip_verify"`
// GRPC Call Options
MaxMsgSz int `json:"max_msg_sz"`
ConnectTimeout float64 `json:"connect_timeout"`
MaxTimeOut float64 `json:"max_timeout"`
KeepAliveTime float64 `json:"keepalive_time"`
}
func (*Session) ParseMetadata ¶
ParseMetadata used to convert the metadata and authorization parameters to array of strings
type Theme ¶
type Theme struct {
Name string
Colors ColorValue
Style ComponentStyle
}
Click to show internal directories.
Click to hide internal directories.