pkgs

package
v0.9.4-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Subscribe

func Subscribe(serverURL string, conn *nats.Conn, stats *common.CacheStats) error

Types

type ResolveRequest

type ResolveRequest struct {
	Dir        string   `json:"dir"`                  // The directory to resolve from (usually where `go.mod` is)
	Env        []string `json:"env"`                  // Environment variables to use during resolution
	BuildFlags []string `json:"buildFlags,omitempty"` // Additional build flags to pass to the resolution driver
	Pattern    string   `json:"pattern"`              // Package pattern to resolve
	// contains filtered or unexported fields
}

func NewResolveRequest

func NewResolveRequest(dir string, buildFlags []string, pattern string) *ResolveRequest

func (*ResolveRequest) Subject

func (*ResolveRequest) Subject() string

type ResolveResponse

type ResolveResponse map[string]string

ResolveResponse is a map of package import path to their respective export file, if one is found. Users should handle possibly missing export files as is relevant to their use-case.

func (ResolveResponse) IsResponseTo

func (ResolveResponse) IsResponseTo(*ResolveRequest)

Jump to

Keyboard shortcuts

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