main_sub

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Main

type Main struct {
	// contains filtered or unexported fields
}

func (*Main) RunWithKlog

func (m *Main) RunWithKlog(serverKind ServerKind, start func() error, stop func() error) error

func (*Main) RunWithSlog

func (m *Main) RunWithSlog(serverKind ServerKind, start func(*slog.Log) error, stop func(*slog.Log) error) error

type ServerKind

type ServerKind string
const (
	CloudEvents ServerKind = "cloudEvents"
	GRPC        ServerKind = "gRPC"
	Http        ServerKind = "http"
	LongPolling ServerKind = "longPolling"
	Socket      ServerKind = "socket"
)

Jump to

Keyboard shortcuts

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