...

Package standalone

import "golang.conradwood.net/go-easyops/standalone"
Overview
Index

Overview ▾

Package standalone handles applications running in "standalone" mode (that is without failover/datacenter etc)

Variables

var (

    // if we receive requests to resolve any of those (and they don't happen to be available), we panic
    UNSUPPORTED_SERVICES = []string{""}
)

func DialService

func DialService(ctx context.Context, serviceurl string) (net.Conn, error)

dial a service (using local "registry" to find the local port) serviceurl is something like "direct://[host]:port"

func RegisterService

func RegisterService(rsr *reg.RegisterServiceRequest) (string, error)

register a service with the local "registry"

func Registry_V2GetTarget

func Registry_V2GetTarget(ctx context.Context, req *reg.V2GetTargetRequest) (*reg.V2GetTargetResponse, error)

find all registrations for a given service