serverinfo

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SDKServerInfo

func SDKServerInfo(inputOptions ...Option) (*info.ServerInfo, error)

SDKServerInfo wait for the server to start and return the server info.

Types

type Option

type Option func(*Options)

Option is the interface to apply Options.

func WithServerInfoFilePath

func WithServerInfoFilePath(f string) Option

WithServerInfoFilePath sets the server info file path to the given path.

func WithServerInfoReadinessTimeout

func WithServerInfoReadinessTimeout(t time.Duration) Option

WithServerInfoReadinessTimeout sets the server info readiness timeout to the given timeout.

type Options

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

func DefaultOptions

func DefaultOptions() *Options

DefaultOptions returns the default options.

func (*Options) ServerInfoFilePath

func (o *Options) ServerInfoFilePath() string

ServerInfoFilePath returns the server info file path.

func (*Options) ServerInfoReadinessTimeout

func (o *Options) ServerInfoReadinessTimeout() time.Duration

ServerInfoReadinessTimeout returns the server info readiness timeout.

Jump to

Keyboard shortcuts

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