shard

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandEndpoint

func CommandEndpoint(address *Address, commandName string) string

CommandEndpoint returns the full service address for a command with the given name.

func EventEndpoint

func EventEndpoint(address *Address, eventName string) string

EventEndpoint returns the full service address for an event with the given name.

Types

type Address

type Address = micro.ServiceAddress

Address aliases ServiceAddress for backward compatibility.

func CreateAddress

func CreateAddress(region, organization, project string, id ID) *Address

CreateAddress creates a service address for a shard service with the given components.

type ID

type ID = micro.ServiceID

ID aliases ServiceID for backward compatibility.

func GetID

func GetID(organization, project, namespace string) ID

GetID builds a hierarchical service ID from organization, project, and namespace components. Format: <organization>.<project>.<namespace>.

Jump to

Keyboard shortcuts

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