sourcegraph

package
v0.4.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSourcegraphTokenFromCtx

func GetSourcegraphTokenFromCtx(ctx services.Context) string

GetSourcegraphTokenFromCtx looks up the sourcegraphToken key in the supplied context and returns it if set

func NewSourcegraphSearchModule

func NewSourcegraphSearchModule(opts *Options) sqlite.Module

func Register

func Register(ext *sqlite.ExtensionApi, opt *options.Options) (_ sqlite.ErrorCode, err error)

Register registers GitHub related functionality as a SQLite extension

Types

type Options

type Options struct {
	Client      func() *graphql.Client
	RateLimiter *rate.Limiter
	PerPage     int
	Logger      *zerolog.Logger
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL