Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Log ¶ added in v0.12.3
Log calls (*lm.Logger).Log(msg) when set, else it appends the message to the backlog. Once the logger is set, it logs all backlog on the next log.
It is the logger created by libmangal and used internally. Mangal also plugs into the logger (via (*lm.Client).Logger()) and uses it for info display.
func LuaDoc ¶
func LuaDoc() string
LuaDoc will generate library documentation so that language servers can benefit from it.
It's optimized for the https://github.com/LuaLS/lua-language-server
func LuaTemplate ¶
func LuaTemplate() string
LuaTemplate will generate template for the valid lua script used by this provider.
func NewLoader ¶
func NewLoader(script []byte, info lm.ProviderInfo, options Options) (lm.ProviderLoader, error)
NewLoader creates new lua provider loader for the given script.
It won't run the script itself.
Types ¶
type IntoLValue ¶
type Options ¶
type Options struct { // HTTPClient HTTP client to use for all requests. HTTPClient *http.Client // UserAgent to use for all HTTP requests. UserAgent string // CacheStore returns a gokv.Store implementation for use as a cache storage. CacheStore func(dbName, bucketName string) (gokv.Store, error) // PackagePaths is a list of optional extra package paths. PackagePaths []string }
Options are the general luaprovider options.
func DefaultOptions ¶
func DefaultOptions() Options