multi

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Commands = map[string]*tool.Command{
		"deploy": &deployCmd,
		"logs": tool.LogsCmd(&tool.LogsSpec{
			Tool: "weaver multi",
			Source: func(context.Context) (logging.Source, error) {
				return logging.FileSource(logDir), nil
			},
		}),
		"dashboard": status.DashboardCommand(dashboardSpec),
		"status":    status.StatusCommand("weaver multi", defaultRegistry),
		"metrics":   status.MetricsCommand("weaver multi", defaultRegistry),
		"profile":   status.ProfileCommand("weaver multi", defaultRegistry),
		"purge":     tool.PurgeCmd(purgeSpec),
		"version":   itool.VersionCmd("weaver multi"),
	}
)
View Source
var File_internal_tool_multi_multi_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MultiConfig added in v0.15.0

type MultiConfig struct {

	// Application config.
	App *protos.AppConfig `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	// Should the components use the mTLS protocol to communicate with
	// one another?
	Mtls      bool                                    `protobuf:"varint,2,opt,name=mtls,proto3" json:"mtls,omitempty"`
	Listeners map[string]*MultiConfig_ListenerOptions `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

MultiConfig stores the configuration information for one execution of a Service Weaver application using the multiprocess deployer.

func (*MultiConfig) Descriptor deprecated added in v0.15.0

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

Deprecated: Use MultiConfig.ProtoReflect.Descriptor instead.

func (*MultiConfig) GetApp added in v0.15.0

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

func (*MultiConfig) GetListeners added in v0.15.0

func (x *MultiConfig) GetListeners() map[string]*MultiConfig_ListenerOptions

func (*MultiConfig) GetMtls added in v0.15.0

func (x *MultiConfig) GetMtls() bool

func (*MultiConfig) ProtoMessage added in v0.15.0

func (*MultiConfig) ProtoMessage()

func (*MultiConfig) ProtoReflect added in v0.15.0

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

func (*MultiConfig) Reset added in v0.15.0

func (x *MultiConfig) Reset()

func (*MultiConfig) String added in v0.15.0

func (x *MultiConfig) String() string

type MultiConfig_ListenerOptions added in v0.15.0

type MultiConfig_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 (*MultiConfig_ListenerOptions) Descriptor deprecated added in v0.15.0

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

Deprecated: Use MultiConfig_ListenerOptions.ProtoReflect.Descriptor instead.

func (*MultiConfig_ListenerOptions) GetAddress added in v0.15.0

func (x *MultiConfig_ListenerOptions) GetAddress() string

func (*MultiConfig_ListenerOptions) ProtoMessage added in v0.15.0

func (*MultiConfig_ListenerOptions) ProtoMessage()

func (*MultiConfig_ListenerOptions) ProtoReflect added in v0.15.0

func (*MultiConfig_ListenerOptions) Reset added in v0.15.0

func (x *MultiConfig_ListenerOptions) Reset()

func (*MultiConfig_ListenerOptions) String added in v0.15.0

func (x *MultiConfig_ListenerOptions) String() string

Jump to

Keyboard shortcuts

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