Documentation ¶
Index ¶
- Variables
- func ModeStrings() []string
- func ProtocolStrings() []string
- type Mode
- type Protocol
- type Set
- func (s *Set) ClientPort() uint
- func (s *Set) Command() (string, []string)
- func (s *Set) CommandArgs() string
- func (s *Set) HasCommand() bool
- func (s *Set) HostAddress() string
- func (s *Set) LogFileAppend() bool
- func (s *Set) LogFileFormat() string
- func (s *Set) LogFileLevel() zerolog.Level
- func (s *Set) LogFilePath() string
- func (s *Set) LogLevel() zerolog.Level
- func (s *Set) LogMessageTwice() bool
- func (s *Set) LogStdFormat() string
- func (s *Set) MaxFieldDisplayLength() int
- func (s *Set) MessageDir() string
- func (s *Set) Mode() Mode
- func (s *Set) ModeConnectsToClient() bool
- func (s *Set) ModeConnectsToServer() bool
- func (s *Set) Protocol() Protocol
- func (s *Set) RequestPath() string
- func (s *Set) ServerPort() int
- func (s *Set) Validate() error
- func (s *Set) ValidateLogging() error
- func (s *Set) Version() bool
- func (s *Set) WebPort() uint
Constants ¶
This section is empty.
Variables ¶
var ErrHelp = flag.ErrHelp
ErrHelp should be visible without drilling into the original flag package.
Functions ¶
func ModeStrings ¶ added in v1.1.0
func ModeStrings() []string
ModeStrings returns a slice of all String values of the enum
func ProtocolStrings ¶ added in v1.1.0
func ProtocolStrings() []string
ProtocolStrings returns a slice of all String values of the enum
Types ¶
type Mode ¶ added in v1.1.0
type Mode uint
Mode is the operation modeFlag.
const ( // Client mode pretends to be an LSP to a VSCode client. // In this mode flags must provide connection data to VSCode. // The required flag must specify the client connection (e.g. -clientPort). Client Mode = iota // Nexus mode uses LSP as server and pretends to be LSP to VSCode client. // In this mode communication between the two is passed through and logged. Nexus // Server mode tests the LSP as a server, pretending to be a VSCode client. // In this mode flags must provide connection data to the LSP. // The required flag must specify the server connection (e.g. -serverPort). Server )
func ModeString ¶ added in v1.1.0
ModeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ModeValues ¶ added in v1.1.0
func ModeValues() []Mode
ModeValues returns all values of the enum
func (Mode) IsAMode ¶ added in v1.1.0
IsAMode returns "true" if the value is listed in the enum definition. "false" otherwise
func (Mode) MarshalText ¶ added in v1.1.0
MarshalText implements the encoding.TextMarshaler interface for Mode
func (*Mode) UnmarshalText ¶ added in v1.1.0
UnmarshalText implements the encoding.TextUnmarshaler interface for Mode
type Protocol ¶ added in v1.1.0
type Protocol uint
Protocol is the LSP communications protocolFlag.
func ProtocolString ¶ added in v1.1.0
ProtocolString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ProtocolValues ¶ added in v1.1.0
func ProtocolValues() []Protocol
ProtocolValues returns all values of the enum
func (Protocol) IsAProtocol ¶ added in v1.1.0
IsAProtocol returns "true" if the value is listed in the enum definition. "false" otherwise
func (Protocol) MarshalText ¶ added in v1.1.0
MarshalText implements the encoding.TextMarshaler interface for Protocol
func (*Protocol) UnmarshalText ¶ added in v1.1.0
UnmarshalText implements the encoding.TextUnmarshaler interface for Protocol