Documentation ¶
Index ¶
Constants ¶
const ( AllServices = "all" FrontendService = "frontend" HistoryService = "history" MatchingService = "matching" WorkerService = "worker" )
These const represent role strings
Variables ¶
This section is empty.
Functions ¶
func MustValidateUUID ¶
MustValidateUUID parses and validates UUID contents from the given string representation returns empty string if the input is empty string panics if the given input is malformed
func UUIDString ¶
func ValidateUUID ¶
ValidateUUID parses and validates UUID contents from the given string representation returns:
- nil if the input is empty string
- error if input is malformed
- input if input can be parsed and is valid
Types ¶
type UUID ¶
type UUID []byte
UUID represents a 16-byte universally unique identifier this type is a wrapper around google/uuid with the following differences
- type is a byte slice instead of [16]byte
- db serialization converts uuid to bytes as opposed to string
func MustParseUUID ¶
MustParseUUID returns a UUID parsed from the given string representation returns nil if the input is empty string panics if the given input is malformed
func ParseUUID ¶
ParseUUID returns a UUID parsed from the given string representation returns:
- nil if the input is empty string
- error if input is malformed
- UUID object if input can be parsed and is valid
func (UUID) Downcast ¶
Downcast returns the UUID as a byte slice. This is necessary when passing to type sensitive interfaces such as cql.
func (*UUID) Scan ¶
Scan implements sql.Scanner interface to allow this type to be parsed transparently by database drivers
func (UUID) String ¶
String returns the 36 byte hexstring representation of this uuid return empty string if this uuid is nil