multi

package
v0.4.26 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 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

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

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

Deprecated: Use MultiConfig.ProtoReflect.Descriptor instead.

func (*MultiConfig) GetApp

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

func (*MultiConfig) GetListeners

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

func (*MultiConfig) GetMtls

func (x *MultiConfig) GetMtls() bool

func (*MultiConfig) ProtoMessage

func (*MultiConfig) ProtoMessage()

func (*MultiConfig) ProtoReflect

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

func (*MultiConfig) Reset

func (x *MultiConfig) Reset()

func (*MultiConfig) String

func (x *MultiConfig) String() string

type MultiConfig_ListenerOptions

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

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

Deprecated: Use MultiConfig_ListenerOptions.ProtoReflect.Descriptor instead.

func (*MultiConfig_ListenerOptions) GetAddress

func (x *MultiConfig_ListenerOptions) GetAddress() string

func (*MultiConfig_ListenerOptions) ProtoMessage

func (*MultiConfig_ListenerOptions) ProtoMessage()

func (*MultiConfig_ListenerOptions) ProtoReflect

func (*MultiConfig_ListenerOptions) Reset

func (x *MultiConfig_ListenerOptions) Reset()

func (*MultiConfig_ListenerOptions) String

func (x *MultiConfig_ListenerOptions) String() string

Jump to

Keyboard shortcuts

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