Versions in this module Expand all Collapse all v1 v1.1.0 May 31, 2020 Changes in this version + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func MustAsset(name string) []byte + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type Factory interface + Name func() string + New func(params map[string][]string) (Slave, error) + type HtermPrefernces struct + AltBackspaceIsMetaBackspace bool + AltGrMode *string + AltIsMeta bool + AltSendsWhat string + AudibleBellSound string + BackgroundColor string + BackgroundImage string + BackgroundPosition string + BackgroundSize string + BackspaceSendsBackspace bool + CharacterMapOverrides map[string]map[string]string + ClearSelectionAfterCopy bool + CloseOnExit bool + ColorPaletteOverrides []*string + CopyOnSelect bool + CtrlCCopy bool + CtrlPlusMinusZeroZoom bool + CtrlVPaste bool + CursorBlink bool + CursorBlinkCycle [2]int + CursorColor string + DesktopNotificationBell bool + EastAsianAmbiguousAsTwoColumn bool + Enable8BitControl *bool + EnableBold *bool + EnableBoldAsBright bool + EnableClipboardNotice bool + EnableClipboardWrite bool + EnableDec12 bool + Environment map[string]string + FontFamily string + FontSize int + FontSmoothing string + ForegroundColor string + HomeKeysScroll bool + Keybindings map[string]string + MaxStringSequence int + MediaKeysAreFkeys bool + MetaSendsEscape bool + MousePasteButton *int + PageKeysScroll bool + PassAltNumber *bool + PassCtrlNumber *bool + PassMetaNumber *bool + PassMetaV bool + ReceiveEncoding string + ScrollOnKeystroke bool + ScrollOnOutput bool + ScrollWheelMoveMultiplier int + ScrollbarVisible bool + SendEncoding string + ShiftInsertPaste bool + UseDefaultWindowCopy bool + UserCss string + type InitMessage struct + Arguments string + AuthToken string + type Options struct + Address string + Credential string + EnableBasicAuth bool + EnableRandomUrl bool + EnableReconnect bool + EnableTLS bool + EnableTLSClientAuth bool + Height int + IndexFile string + MaxConnection int + Once bool + PermitArguments bool + PermitWrite bool + Port string + Preferences *HtermPrefernces + RandomUrlLength int + ReconnectTime int + TLSCACrtFile string + TLSCrtFile string + TLSKeyFile string + Term string + Timeout int + TitleFormat string + TitleVariables map[string]interface{} + WSOrigin string + Width int + func (options *Options) Validate() error + type RunOption func(*RunOptions) + func WithGracefullContext(ctx context.Context) RunOption + type RunOptions struct + type Server struct + func New(factory Factory, options *Options) (*Server, error) + func (server *Server) Run(ctx context.Context, options ...RunOption) error + type Slave interface + Close func() error