codefly

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 9 Imported by: 1

README

workflow Go Report Card Go Reference

codefly + go = sdk-go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatchPanic added in v0.0.7

func CatchPanic(ctx context.Context)

func GetLogLevel added in v0.0.11

func GetLogLevel() wool.Loglevel

func Init added in v0.0.11

func Init(ctx context.Context) (*wool.Provider, error)

func LoadNetworkEndpointFromEnvironmentVariables added in v0.0.11

func LoadNetworkEndpointFromEnvironmentVariables(ctx context.Context) error

func LoadOverrides added in v0.0.7

func LoadOverrides(ctx context.Context) error

func LoadService added in v0.0.7

func LoadService(ctx context.Context) error

func Version added in v0.0.7

func Version() string

func WithRoot added in v0.0.7

func WithRoot(dir string)

Types

type Configuration added in v0.0.7

type Configuration struct {
	Endpoints []EndpointOverride
}

type EndpointOverride added in v0.0.7

type EndpointOverride struct {
	Name     string
	Override string
}

type INetworkEndpoint added in v0.0.7

type INetworkEndpoint interface {
	IsPresent() bool
	WithDefault(backup string) INetworkEndpoint

	Host() string
	PortAddress() string
}

func Endpoint

func Endpoint(ctx context.Context, name string) INetworkEndpoint

type NetworkEndpoint

type NetworkEndpoint struct {
	Values []string
}

func GetEndpoint added in v0.0.12

func GetEndpoint(ctx context.Context, name string) (*NetworkEndpoint, error)

func (*NetworkEndpoint) Host

func (e *NetworkEndpoint) Host() string

func (*NetworkEndpoint) IsPresent added in v0.0.7

func (e *NetworkEndpoint) IsPresent() bool

func (*NetworkEndpoint) PortAddress

func (e *NetworkEndpoint) PortAddress() string

func (*NetworkEndpoint) WithDefault

func (e *NetworkEndpoint) WithDefault(backup string) INetworkEndpoint

type NetworkEndpointNotFound added in v0.0.7

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

func (*NetworkEndpointNotFound) Host added in v0.0.7

func (e *NetworkEndpointNotFound) Host() string

func (*NetworkEndpointNotFound) IsPresent added in v0.0.7

func (e *NetworkEndpointNotFound) IsPresent() bool

func (*NetworkEndpointNotFound) PortAddress added in v0.0.7

func (e *NetworkEndpointNotFound) PortAddress() string

func (*NetworkEndpointNotFound) WithDefault added in v0.0.7

func (e *NetworkEndpointNotFound) WithDefault(backup string) INetworkEndpoint

Jump to

Keyboard shortcuts

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