server

package
v0.0.0-...-5f09953 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LlamaCCPath = "/llamacc"
)

Variables

View Source
var ErrAlreadyRunning = errors.New("daemon already running")

Functions

func DialWithAutostart

func DialWithAutostart(ctx context.Context, sockPath string, urlPath string) (*daemon.Client, error)

func Start

func Start(ctx context.Context, args *StartArgs) error

Types

type Daemon

type Daemon struct {
	// contains filtered or unexported fields
}

func (*Daemon) GetCompilerIncludePath

func (d *Daemon) GetCompilerIncludePath(in *daemon.GetCompilerIncludePathArgs, out *daemon.GetCompilerIncludePathReply) error

func (*Daemon) GetDaemonStats

func (d *Daemon) GetDaemonStats(in *daemon.StatsArgs, out *daemon.StatsReply) error

func (*Daemon) InvokeWithFiles

func (d *Daemon) InvokeWithFiles(in *daemon.InvokeWithFilesArgs, out *daemon.InvokeWithFilesReply) error

func (*Daemon) Ping

func (d *Daemon) Ping(in daemon.PingArgs, reply *daemon.PingReply) error

func (*Daemon) Shutdown

func (d *Daemon) Shutdown(in daemon.ShutdownArgs, out *daemon.ShutdownReply) error

func (*Daemon) TraceSpans

func (d *Daemon) TraceSpans(in *daemon.TraceSpansArgs, out *daemon.TraceSpansReply) error

type StartArgs

type StartArgs struct {
	Path               string
	Store              store.Store
	Session            *session.Session
	IdleTimeout        time.Duration
	LlamaCCConcurrency int64
}

Jump to

Keyboard shortcuts

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