msgapi

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checksums

type Checksums struct {
	Sha256 string `msgpack:"checksums"`
}

type CloseEvaluator

type CloseEvaluator struct {
	EvaluatorId int64 `msgpack:"evaluatorId,omitempty"`
}

func (*CloseEvaluator) ToMsgPack

func (msg *CloseEvaluator) ToMsgPack() ([]byte, error)

type CreateEvaluator

type CreateEvaluator struct {
	RequestId        int64                `msgpack:"requestId"`
	ResourceReaders  []*ResourceReader    `msgpack:"clientResourceReaders,omitempty"`
	ModuleReaders    []*ModuleReader      `msgpack:"clientModuleReaders,omitempty"`
	ModulePaths      []string             `msgpack:"modulePaths,omitempty"`
	Env              map[string]string    `msgpack:"env,omitempty"`
	Properties       map[string]string    `msgpack:"properties,omitempty"`
	OutputFormat     string               `msgpack:"outputFormat,omitempty"`
	AllowedModules   []string             `msgpack:"allowedModules,omitempty"`
	AllowedResources []string             `msgpack:"allowedResources,omitempty"`
	RootDir          string               `msgpack:"rootDir,omitempty"`
	CacheDir         string               `msgpack:"cacheDir,omitempty"`
	Project          *ProjectOrDependency `msgpack:"project,omitempty"`
	Http             *Http                `msgpack:"http,omitempty"`
	// Intentionally not used right now. Go has `context.WithTimeout` which is a more canonical way to handle timeouts.
	TimeoutSeconds int64 `msgpack:"timeoutSeconds,omitempty"`
}

func (*CreateEvaluator) ToMsgPack

func (msg *CreateEvaluator) ToMsgPack() ([]byte, error)

type CreateEvaluatorResponse

type CreateEvaluatorResponse struct {
	RequestId   int64  `msgpack:"requestId"`
	EvaluatorId int64  `msgpack:"evaluatorId"`
	Error       string `msgpack:"error"`
	// contains filtered or unexported fields
}

type Evaluate

type Evaluate struct {
	RequestId   int64  `msgpack:"requestId"`
	EvaluatorId int64  `msgpack:"evaluatorId"`
	ModuleUri   string `msgpack:"moduleUri"`
	ModuleText  string `msgpack:"moduleText,omitempty"`
	Expr        string `msgpack:"expr,omitempty"`
}

func (*Evaluate) ToMsgPack

func (msg *Evaluate) ToMsgPack() ([]byte, error)

type EvaluateResponse

type EvaluateResponse struct {
	RequestId   int64  `msgpack:"requestId"`
	EvaluatorId int64  `msgpack:"evaluatorId"`
	Result      []byte `msgpack:"result"`
	Error       string `msgpack:"error"`
	// contains filtered or unexported fields
}

type Http

type Http struct {
	CaCertificates []byte `msgpack:"caCertificates,omitempty"`
	Proxy          *Proxy `msgpack:"proxy,omitempty"`
}

type IncomingMessage

type IncomingMessage interface {
	// contains filtered or unexported methods
}

func Decode

func Decode(decoder *msgpack.Decoder) (IncomingMessage, error)

type ListModules

type ListModules struct {
	RequestId   int64  `msgpack:"requestId"`
	EvaluatorId int64  `msgpack:"evaluatorId"`
	Uri         string `msgpack:"uri"`
	// contains filtered or unexported fields
}

type ListModulesResponse

type ListModulesResponse struct {
	RequestId    int64          `msgpack:"requestId"`
	EvaluatorId  int64          `msgpack:"evaluatorId"`
	PathElements []*PathElement `msgpack:"pathElements,omitempty"`
	Error        string         `msgpack:"error,omitempty"`
}

func (ListModulesResponse) ToMsgPack

func (msg ListModulesResponse) ToMsgPack() ([]byte, error)

type ListResources

type ListResources struct {
	RequestId   int64  `msgpack:"requestId"`
	EvaluatorId int64  `msgpack:"evaluatorId"`
	Uri         string `msgpack:"uri"`
	// contains filtered or unexported fields
}

type ListResourcesResponse

type ListResourcesResponse struct {
	RequestId    int64          `msgpack:"requestId"`
	EvaluatorId  int64          `msgpack:"evaluatorId"`
	PathElements []*PathElement `msgpack:"pathElements,omitempty"`
	Error        string         `msgpack:"error,omitempty"`
}

func (ListResourcesResponse) ToMsgPack

func (msg ListResourcesResponse) ToMsgPack() ([]byte, error)

type Log

type Log struct {
	EvaluatorId int64  `msgpack:"evaluatorId"`
	Level       int    `msgpack:"level"`
	Message     string `msgpack:"message"`
	FrameUri    string `msgpack:"frameUri"`
	// contains filtered or unexported fields
}

type ModuleReader

type ModuleReader struct {
	Scheme              string `msgpack:"scheme"`
	HasHierarchicalUris bool   `msgpack:"hasHierarchicalUris"`
	IsGlobbable         bool   `msgpack:"isGlobbable"`
	IsLocal             bool   `msgpack:"isLocal"`
}

type OutgoingMessage

type OutgoingMessage interface {
	ToMsgPack() ([]byte, error)
}

type PathElement

type PathElement struct {
	Name        string `msgpack:"name"`
	IsDirectory bool   `msgpack:"isDirectory"`
}

type ProjectOrDependency

type ProjectOrDependency struct {
	PackageUri     string                          `msgpack:"packageUri,omitempty"`
	Type           string                          `msgpack:"type"`
	ProjectFileUri string                          `msgpack:"projectFileUri,omitempty"`
	Checksums      *Checksums                      `msgpack:"checksums,omitempty"`
	Dependencies   map[string]*ProjectOrDependency `msgpack:"dependencies"`
}

type Proxy

type Proxy struct {
	Address string   `msgpack:"address,omitempty"`
	NoProxy []string `msgpack:"noproxy,omitempty"`
}

type ReadModule

type ReadModule struct {
	RequestId   int64  `msgpack:"requestId"`
	EvaluatorId int64  `msgpack:"evaluatorId"`
	Uri         string `msgpack:"uri"`
	// contains filtered or unexported fields
}

type ReadModuleResponse

type ReadModuleResponse struct {
	RequestId   int64  `msgpack:"requestId"`
	EvaluatorId int64  `msgpack:"evaluatorId"`
	Contents    string `msgpack:"contents,omitempty"`
	Error       string `msgpack:"error,omitempty"`
}

func (*ReadModuleResponse) ToMsgPack

func (msg *ReadModuleResponse) ToMsgPack() ([]byte, error)

type ReadResource

type ReadResource struct {
	RequestId   int64  `msgpack:"requestId"`
	EvaluatorId int64  `msgpack:"evaluatorId"`
	Uri         string `msgpack:"uri"`
	// contains filtered or unexported fields
}

type ReadResourceResponse

type ReadResourceResponse struct {
	RequestId   int64  `msgpack:"requestId"`
	EvaluatorId int64  `msgpack:"evaluatorId"`
	Contents    []byte `msgpack:"contents,omitempty"`
	Error       string `msgpack:"error,omitempty"`
}

func (*ReadResourceResponse) ToMsgPack

func (msg *ReadResourceResponse) ToMsgPack() ([]byte, error)

type ResourceReader

type ResourceReader struct {
	Scheme              string `msgpack:"scheme"`
	HasHierarchicalUris bool   `msgpack:"hasHierarchicalUris"`
	IsGlobbable         bool   `msgpack:"isGlobbable"`
}

Jump to

Keyboard shortcuts

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