single

package
v0.5.22 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigKey      = "github.com/TiagoMalhadas/xcweaver/single"
	ShortConfigKey = "single"
)

Variables

View Source
var (
	RegistryDir  = filepath.Join(dataDir, "registry")
	PerfettoFile = filepath.Join(dataDir, "traces.DB")

	Commands = map[string]*tool.Command{
		"deploy":    &deployCmd,
		"status":    status.StatusCommand("weaver single", defaultRegistry),
		"dashboard": status.DashboardCommand(dashboardSpec),
		"metrics":   status.MetricsCommand("weaver single", defaultRegistry),
		"profile":   status.ProfileCommand("weaver single", defaultRegistry),
		"purge":     tool.PurgeCmd(purgeSpec),
		"version":   itool.VersionCmd("weaver single"),
	}
)
View Source
var File_internal_tool_single_single_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SingleConfig

type SingleConfig struct {

	// Application config.
	App            *protos.AppConfig                             `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	Listeners      map[string]*SingleConfig_ListenerOptions      `` /* 159-byte string literal not displayed */
	AntipodeAgents map[string]*SingleConfig_AntipodeAgentOptions `` /* 169-byte string literal not displayed */
	// contains filtered or unexported fields
}

SingleConfig stores the configuration information for one execution of a Service Weaver application using the singleprocess deployer.

func (*SingleConfig) Descriptor deprecated

func (*SingleConfig) Descriptor() ([]byte, []int)

Deprecated: Use SingleConfig.ProtoReflect.Descriptor instead.

func (*SingleConfig) GetAntipodeAgents added in v0.4.84

func (x *SingleConfig) GetAntipodeAgents() map[string]*SingleConfig_AntipodeAgentOptions

func (*SingleConfig) GetApp

func (x *SingleConfig) GetApp() *protos.AppConfig

func (*SingleConfig) GetListeners

func (x *SingleConfig) GetListeners() map[string]*SingleConfig_ListenerOptions

func (*SingleConfig) ProtoMessage

func (*SingleConfig) ProtoMessage()

func (*SingleConfig) ProtoReflect

func (x *SingleConfig) ProtoReflect() protoreflect.Message

func (*SingleConfig) Reset

func (x *SingleConfig) Reset()

func (*SingleConfig) String

func (x *SingleConfig) String() string

type SingleConfig_AntipodeAgentOptions added in v0.3.24

type SingleConfig_AntipodeAgentOptions struct {

	// the type of the datastore e.g. "redis"
	DatastoreType string `protobuf:"bytes,1,opt,name=datastoreType,proto3" json:"datastoreType,omitempty"`
	// the datastore host
	Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	// the datastore port
	Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"`
	// the datastore user
	User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
	// the datastore password
	Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
	// the datastore name
	Datastore string `protobuf:"bytes,6,opt,name=datastore,proto3" json:"datastore,omitempty"`
	// the datastore queue  //Maybe to remove
	Queue string `protobuf:"bytes,7,opt,name=queue,proto3" json:"queue,omitempty"`
	// contains filtered or unexported fields
}

Options for the application antipode agents, keyed by antipode agent name. If an antipode agent isn't specified in the map, default options will be used.

func (*SingleConfig_AntipodeAgentOptions) Descriptor deprecated added in v0.5.0

func (*SingleConfig_AntipodeAgentOptions) Descriptor() ([]byte, []int)

Deprecated: Use SingleConfig_AntipodeAgentOptions.ProtoReflect.Descriptor instead.

func (*SingleConfig_AntipodeAgentOptions) GetDatastore added in v0.3.24

func (x *SingleConfig_AntipodeAgentOptions) GetDatastore() string

func (*SingleConfig_AntipodeAgentOptions) GetDatastoreType added in v0.3.24

func (x *SingleConfig_AntipodeAgentOptions) GetDatastoreType() string

func (*SingleConfig_AntipodeAgentOptions) GetHost added in v0.3.24

func (*SingleConfig_AntipodeAgentOptions) GetPassword added in v0.3.24

func (x *SingleConfig_AntipodeAgentOptions) GetPassword() string

func (*SingleConfig_AntipodeAgentOptions) GetPort added in v0.3.24

func (*SingleConfig_AntipodeAgentOptions) GetQueue added in v0.4.2

func (*SingleConfig_AntipodeAgentOptions) GetUser added in v0.4.2

func (*SingleConfig_AntipodeAgentOptions) ProtoMessage added in v0.3.24

func (*SingleConfig_AntipodeAgentOptions) ProtoMessage()

func (*SingleConfig_AntipodeAgentOptions) ProtoReflect added in v0.3.24

func (*SingleConfig_AntipodeAgentOptions) Reset added in v0.3.24

func (*SingleConfig_AntipodeAgentOptions) String added in v0.3.24

type SingleConfig_ListenerOptions

type SingleConfig_ListenerOptions struct {

	// Address of the listener. The value must have the form :port or
	// host:port, or it may be the empty string, which is treated as ":0".
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

Options for the application listeners, keyed by listener name. If a listener isn't specified in the map, default options will be used.

func (*SingleConfig_ListenerOptions) Descriptor deprecated

func (*SingleConfig_ListenerOptions) Descriptor() ([]byte, []int)

Deprecated: Use SingleConfig_ListenerOptions.ProtoReflect.Descriptor instead.

func (*SingleConfig_ListenerOptions) GetAddress

func (x *SingleConfig_ListenerOptions) GetAddress() string

func (*SingleConfig_ListenerOptions) ProtoMessage

func (*SingleConfig_ListenerOptions) ProtoMessage()

func (*SingleConfig_ListenerOptions) ProtoReflect

func (*SingleConfig_ListenerOptions) Reset

func (x *SingleConfig_ListenerOptions) Reset()

func (*SingleConfig_ListenerOptions) String

Jump to

Keyboard shortcuts

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