Documentation ¶
Index ¶
- Constants
- Variables
- type SingleConfig
- func (*SingleConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SingleConfig) GetApp() *protos.AppConfig
- func (x *SingleConfig) GetListeners() map[string]*SingleConfig_ListenerOptions
- func (*SingleConfig) ProtoMessage()
- func (x *SingleConfig) ProtoReflect() protoreflect.Message
- func (x *SingleConfig) Reset()
- func (x *SingleConfig) String() string
- type SingleConfig_ListenerOptions
- func (*SingleConfig_ListenerOptions) Descriptor() ([]byte, []int)deprecated
- func (x *SingleConfig_ListenerOptions) GetAddress() string
- func (*SingleConfig_ListenerOptions) ProtoMessage()
- func (x *SingleConfig_ListenerOptions) ProtoReflect() protoreflect.Message
- func (x *SingleConfig_ListenerOptions) Reset()
- func (x *SingleConfig_ListenerOptions) String() string
Constants ¶
View Source
const ( ConfigKey = "github.com/ServiceWeaver/weaver/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 ¶ added in v0.15.0
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 */ // 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
added in
v0.15.0
func (*SingleConfig) Descriptor() ([]byte, []int)
Deprecated: Use SingleConfig.ProtoReflect.Descriptor instead.
func (*SingleConfig) GetApp ¶ added in v0.15.0
func (x *SingleConfig) GetApp() *protos.AppConfig
func (*SingleConfig) GetListeners ¶ added in v0.15.0
func (x *SingleConfig) GetListeners() map[string]*SingleConfig_ListenerOptions
func (*SingleConfig) ProtoMessage ¶ added in v0.15.0
func (*SingleConfig) ProtoMessage()
func (*SingleConfig) ProtoReflect ¶ added in v0.15.0
func (x *SingleConfig) ProtoReflect() protoreflect.Message
func (*SingleConfig) Reset ¶ added in v0.15.0
func (x *SingleConfig) Reset()
func (*SingleConfig) String ¶ added in v0.15.0
func (x *SingleConfig) String() string
type SingleConfig_ListenerOptions ¶ added in v0.15.0
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
added in
v0.15.0
func (*SingleConfig_ListenerOptions) Descriptor() ([]byte, []int)
Deprecated: Use SingleConfig_ListenerOptions.ProtoReflect.Descriptor instead.
func (*SingleConfig_ListenerOptions) GetAddress ¶ added in v0.15.0
func (x *SingleConfig_ListenerOptions) GetAddress() string
func (*SingleConfig_ListenerOptions) ProtoMessage ¶ added in v0.15.0
func (*SingleConfig_ListenerOptions) ProtoMessage()
func (*SingleConfig_ListenerOptions) ProtoReflect ¶ added in v0.15.0
func (x *SingleConfig_ListenerOptions) ProtoReflect() protoreflect.Message
func (*SingleConfig_ListenerOptions) Reset ¶ added in v0.15.0
func (x *SingleConfig_ListenerOptions) Reset()
func (*SingleConfig_ListenerOptions) String ¶ added in v0.15.0
func (x *SingleConfig_ListenerOptions) String() string
Click to show internal directories.
Click to hide internal directories.