Versions in this module Expand all Collapse all v0 v0.2.0 Oct 7, 2023 v0.1.0 Aug 2, 2022 Changes in this version + var DefaultFileContentProvider = NewGitHubFileProvider(github.NewClient(nil), "botlabs-gg", "yagpdb", "master") + func Fetch(ctx context.Context, sources []Source) (funcs []string, err error) + type BaseContextFuncSource struct + func NewBaseContextFuncSource(fcp FileContentProvider) *BaseContextFuncSource + func (c *BaseContextFuncSource) Fetch(ctx context.Context) ([]string, error) + type BuiltinFuncSource struct + func NewBuiltinFuncSource(fcp FileContentProvider) *BuiltinFuncSource + func (b *BuiltinFuncSource) Fetch(ctx context.Context) ([]string, error) + type FileContentProvider interface + Get func(ctx context.Context, path string) (content string, err error) + type GitHubFileProvider struct + func NewGitHubFileProvider(client *github.Client, repoOwner, repoName, ref string) *GitHubFileProvider + func (g *GitHubFileProvider) Get(ctx context.Context, path string) (string, error) + type PluginExtensionFuncSource struct + func NewCommandsPluginExtensionFuncSource(fcp FileContentProvider) *PluginExtensionFuncSource + func NewCustomCommandsPluginExtensionFuncSource(fcp FileContentProvider) *PluginExtensionFuncSource + func NewLogsPluginExtensionFuncSource(fcp FileContentProvider) *PluginExtensionFuncSource + func NewTicketsPluginExtensionFuncSource(fcp FileContentProvider) *PluginExtensionFuncSource + func (p *PluginExtensionFuncSource) Fetch(ctx context.Context) ([]string, error) + type Source interface + Fetch func(ctx context.Context) (funcs []string, err error) + func DefaultSources(fcp FileContentProvider) []Source + type StaticFileProvider struct + func NewStaticFileProvider(files map[string]string) *StaticFileProvider + func (s *StaticFileProvider) Get(_ context.Context, path string) (string, error)