service

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env string

func NewEnv

func NewEnv(name string) Env

type Name

type Name string

func FromString

func FromString(serviceName string) Name

FromString is the official framework way to retrieve/know a service name assuring that it is in the right/supported format.

func (Name) String

func (n Name) String() string

String is a helper function to avoid casting the Name around.

func (Name) ToDatabase

func (n Name) ToDatabase() string

ToDatabase returns the service name in the format that should be used by the database name of a service.

func (Name) ToEvent

func (n Name) ToEvent() string

ToEvent gives the Name in the format to be used when trying to manipulate pubsub event names.

func (Name) ToSettings

func (n Name) ToSettings() string

ToSettings gives the Name in the format handled by the settings service.

type ServerPort

type ServerPort int32

ServerPort is a framework type representing a port listened by a specific type of service.

func (ServerPort) Int

func (s ServerPort) Int() int

Int returns the current ServerPort in int format.

func (ServerPort) Int32

func (s ServerPort) Int32() int32

Int32 returns the current ServerPort in int32 format.

Jump to

Keyboard shortcuts

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