Versions in this module Expand all Collapse all v0 v0.1.1 May 12, 2022 v0.1.0 May 12, 2022 Changes in this version + const HTML + const JSON + const Markdown + const PlainText + const Version + var BaseTemplate = ...(template.FuncMap{ ... }) + var CacheTmpl = template.Must(template.Must(BaseTemplate.Clone()).Parse(...)) + var ClientTmpl = template.Must(template.Must(BaseTemplate.Clone()).Parse(...)) + var DebugTmpl = template.Must(template.Must(BaseTemplate.Clone()).Parse(...)) + var FileTmpl = template.Must(template.Must(BaseTemplate.Clone()).Parse(...)) + var InfoTmpl = template.Must(template.Must(BaseTemplate.Clone()).Parse(...)) + var MainTmpl = template.Must(template.Must(BaseTemplate.Clone()).Parse(...)) + var MemoryTmpl = template.Must(template.Must(BaseTemplate.Clone()).Parse(...)) + var RPCTmpl = template.Must(template.Must(BaseTemplate.Clone()).Parse(...)) + var ServerTmpl = template.Must(template.Must(BaseTemplate.Clone()).Parse(...)) + var SessionTmpl = template.Must(template.Must(BaseTemplate.Clone()).Parse(...)) + var TraceTmpl = template.Must(template.Must(BaseTemplate.Clone()).Parse(...)) + var ViewTmpl = template.Must(template.Must(BaseTemplate.Clone()).Parse(...)) + func Bug(ctx context.Context, desc, format string, args ...interface{}) + func PrintVersionInfo(_ context.Context, w io.Writer, verbose bool, mode PrintMode) error + func StdTrace(exporter event.Exporter) event.Exporter + func WithInstance(ctx context.Context, workdir, agent string) context.Context + type BuildInfo debug.BuildInfo + type Client struct + DebugAddress string + GoplsPath string + Logfile string + ServerID string + Service protocol.Server + Session *cache.Session + type Instance struct + LogWriter io.Writer + Logfile string + OCAgentConfig string + ServerAddress string + StartTime time.Time + State *State + Workdir string + func GetInstance(ctx context.Context) *Instance + func (i *Instance) AddService(s protocol.Server, session *cache.Session) + func (i *Instance) DebugAddress() string + func (i *Instance) ListenedDebugAddress() string + func (i *Instance) MonitorMemory(ctx context.Context) + func (i *Instance) PrintServerInfo(ctx context.Context, w io.Writer) + func (i *Instance) Serve(ctx context.Context, addr string) (string, error) + func (i *Instance) SetLogFile(logfile string, isDaemon bool) (func(), error) + type Module struct + Replace *ModuleVersion + type ModuleVersion struct + Path string + Sum string + Version string + type PrintMode int + type Rpcs struct + Inbound []*rpcStats + Outbound []*rpcStats + func (r *Rpcs) ProcessEvent(ctx context.Context, ev core.Event, lm label.Map) context.Context + type Server struct + ClientID string + DebugAddress string + GoplsPath string + ID string + Logfile string + type ServerVersion struct + Version string + func VersionInfo() *ServerVersion + type State struct + func (st *State) Bugs() []bug + func (st *State) Cache(id string) *cache.Cache + func (st *State) Caches() []*cache.Cache + func (st *State) Client(id string) *Client + func (st *State) Clients() []*Client + func (st *State) Servers() []*Server + func (st *State) Session(id string) *cache.Session + func (st *State) Sessions() []*cache.Session + func (st *State) View(id string) *cache.View + func (st *State) Views() []*cache.View + type TraceResults struct + Selected *traceSet + Traces []*traceSet