Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ConfigCtxKey is the key for the config in the context. ConfigCtxKey = ContextKey("config") // SessionCtxKey is the key for the session in the context. SessionCtxKey = ContextKey("session") )
Functions ¶
func CatCommand ¶
CatCommand returns a command that prints the contents of a file.
func GitCommand ¶
GitCommand returns a command that handles Git operations.
func ListCommand ¶
ListCommand returns a command that list file or directory at path.
func ReloadCommand ¶
ReloadCommand returns a command that reloads the server configuration.
func RootCommand ¶
RootCommand is the root command for the server.
Types ¶
type ContextKey ¶ added in v0.4.0
type ContextKey string
ContextKey is a type that can be used as a key in a context.
func (ContextKey) String ¶ added in v0.4.0
func (c ContextKey) String() string
String returns the string representation of the ContextKey.
Click to show internal directories.
Click to hide internal directories.