akid

package
v0.0.0-...-f1bff1d Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 14

Documentation

Index

Constants

View Source
const (
	APISpecTag             = "api"
	APIKeyTag              = "apk"
	APIMethodTag           = "mth"
	ClientTag              = "cli"
	ConnectionTag          = "cxn"
	DataCategoryTag        = "dct"
	GraphTag               = "gph"
	IdentityTag            = "idt"
	InsightsEndpointTag    = "ine"
	InvalidTag             = "xxx"
	LearnSessionTag        = "lrn"
	MessageTag             = "msg"
	MonitorTag             = "mtr"
	OrganizationTag        = "org"
	OutboundRequestTag     = "obr"
	PathParameterPrefixTag = "ppx"
	ProjectTag             = "prj"
	RequestTag             = "req"
	RuleTag                = "rul"
	ScheduleTag            = "sch"
	ServiceClusterTag      = "scl"
	ServiceTag             = "svc"
	ShardAliasTag          = "sal"
	ShardTag               = "shd"
	UsageTrackingEventTag  = "ute"
	UserTag                = "usr"
	WitnessTag             = "wit"
)

Variables

View Source
var (
	// NOTE: These are deprecated and will be removed in a subsequent PR.
	// Use the zero (unassigned) value for any given ID instead.
	NilDataCategoryID   = NewDataCategoryID(uuid.Nil)
	NilProjectID        = NewProjectID(uuid.Nil)
	NilServiceID        = NewServiceID(uuid.Nil)
	NilServiceClusterID = NewServiceClusterID(uuid.Nil)
	NilUserID           = NewUserID(uuid.Nil)
)

Functions

func ParseIDAs

func ParseIDAs(str string, destID interface{}) error

func String

func String(akid ID) string

Types

type APIKeyID

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

APIKeyIDs

func GenerateAPIKeyID

func GenerateAPIKeyID() APIKeyID

func NewAPIKeyID

func NewAPIKeyID(ID uuid.UUID) APIKeyID

func (APIKeyID) GetType

func (APIKeyID) GetType() string

func (APIKeyID) GetUUID

func (bid APIKeyID) GetUUID() uuid.UUID

func (APIKeyID) MarshalText

func (id APIKeyID) MarshalText() ([]byte, error)

func (*APIKeyID) Scan

func (i *APIKeyID) Scan(src interface{}) error

func (APIKeyID) String

func (id APIKeyID) String() string

func (*APIKeyID) UnmarshalText

func (id *APIKeyID) UnmarshalText(data []byte) error

func (APIKeyID) Value

func (i APIKeyID) Value() (driver.Value, error)

type APIMethodID

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

APIMethodIDs

func GenerateAPIMethodID

func GenerateAPIMethodID() APIMethodID

func NewAPIMethodID

func NewAPIMethodID(ID uuid.UUID) APIMethodID

func (APIMethodID) GetType

func (APIMethodID) GetType() string

func (APIMethodID) GetUUID

func (bid APIMethodID) GetUUID() uuid.UUID

func (APIMethodID) MarshalText

func (id APIMethodID) MarshalText() ([]byte, error)

func (*APIMethodID) Scan

func (i *APIMethodID) Scan(src interface{}) error

func (APIMethodID) String

func (id APIMethodID) String() string

func (*APIMethodID) UnmarshalText

func (id *APIMethodID) UnmarshalText(data []byte) error

func (APIMethodID) Value

func (i APIMethodID) Value() (driver.Value, error)

type APISpecID

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

APISpecIDs

func GenerateAPISpecID

func GenerateAPISpecID() APISpecID

func NewAPISpecID

func NewAPISpecID(ID uuid.UUID) APISpecID

func (APISpecID) GetType

func (APISpecID) GetType() string

func (APISpecID) GetUUID

func (bid APISpecID) GetUUID() uuid.UUID

func (APISpecID) MarshalText

func (id APISpecID) MarshalText() ([]byte, error)

func (*APISpecID) Scan

func (i *APISpecID) Scan(src interface{}) error

func (APISpecID) String

func (id APISpecID) String() string

func (*APISpecID) UnmarshalText

func (id *APISpecID) UnmarshalText(data []byte) error

func (APISpecID) Value

func (i APISpecID) Value() (driver.Value, error)

type ClientID

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

ClientIDs ClientID represents a unique run of the akita client.

func GenerateClientID

func GenerateClientID() ClientID

func NewClientID

func NewClientID(ID uuid.UUID) ClientID

func (ClientID) GetType

func (ClientID) GetType() string

func (ClientID) GetUUID

func (bid ClientID) GetUUID() uuid.UUID

func (ClientID) MarshalText

func (id ClientID) MarshalText() ([]byte, error)

func (*ClientID) Scan

func (i *ClientID) Scan(src interface{}) error

func (ClientID) String

func (id ClientID) String() string

func (*ClientID) UnmarshalText

func (id *ClientID) UnmarshalText(data []byte) error

func (ClientID) Value

func (i ClientID) Value() (driver.Value, error)

type ConnectionID

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

ConnectionIDs represent a network connection

func GenerateConnectionID

func GenerateConnectionID() ConnectionID

func NewConnectionID

func NewConnectionID(ID uuid.UUID) ConnectionID

func (ConnectionID) GetType

func (ConnectionID) GetType() string

func (ConnectionID) GetUUID

func (bid ConnectionID) GetUUID() uuid.UUID

func (ConnectionID) MarshalText

func (id ConnectionID) MarshalText() ([]byte, error)

func (*ConnectionID) Scan

func (i *ConnectionID) Scan(src interface{}) error

func (ConnectionID) String

func (id ConnectionID) String() string

func (*ConnectionID) UnmarshalText

func (id *ConnectionID) UnmarshalText(data []byte) error

func (ConnectionID) Value

func (i ConnectionID) Value() (driver.Value, error)

type DataCategoryID

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

DataCategoryIDs

func GenerateDataCategoryID

func GenerateDataCategoryID() DataCategoryID

func NewDataCategoryID

func NewDataCategoryID(ID uuid.UUID) DataCategoryID

func (DataCategoryID) GetType

func (DataCategoryID) GetType() string

func (DataCategoryID) GetUUID

func (bid DataCategoryID) GetUUID() uuid.UUID

func (DataCategoryID) MarshalText

func (i DataCategoryID) MarshalText() ([]byte, error)

To support JSON marshaling/unmarshaling, individual akid types must implement encoding.TextMarshaler and encoding.TextUnmarshaler. In order to allow the individual akid types to have valid zero values, baseID does not know about the tag. Thus, it cannot implement those interfaces.

func (*DataCategoryID) Scan

func (i *DataCategoryID) Scan(src interface{}) error

func (DataCategoryID) String

func (id DataCategoryID) String() string

func (*DataCategoryID) UnmarshalText

func (i *DataCategoryID) UnmarshalText(data []byte) error

func (DataCategoryID) Value

func (i DataCategoryID) Value() (driver.Value, error)

type GraphID

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

GraphIDs

func GenerateGraphID

func GenerateGraphID() GraphID

func NewGraphID

func NewGraphID(ID uuid.UUID) GraphID

func (GraphID) GetType

func (GraphID) GetType() string

func (GraphID) GetUUID

func (bid GraphID) GetUUID() uuid.UUID

func (GraphID) MarshalText

func (id GraphID) MarshalText() ([]byte, error)

func (*GraphID) Scan

func (i *GraphID) Scan(src interface{}) error

func (GraphID) String

func (id GraphID) String() string

func (*GraphID) UnmarshalText

func (id *GraphID) UnmarshalText(data []byte) error

func (GraphID) Value

func (i GraphID) Value() (driver.Value, error)

type ID

type ID interface {
	GetType() string
	GetUUID() uuid.UUID
	String() string
}

func ParseID

func ParseID(str string) (ID, error)

type IdentityID

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

IdentityIDs

func GenerateIdentityID

func GenerateIdentityID() IdentityID

func NewIdentityID

func NewIdentityID(ID uuid.UUID) IdentityID

func (IdentityID) GetType

func (IdentityID) GetType() string

func (IdentityID) GetUUID

func (bid IdentityID) GetUUID() uuid.UUID

func (IdentityID) MarshalText

func (id IdentityID) MarshalText() ([]byte, error)

func (*IdentityID) Scan

func (i *IdentityID) Scan(src interface{}) error

func (IdentityID) String

func (id IdentityID) String() string

func (*IdentityID) UnmarshalText

func (id *IdentityID) UnmarshalText(data []byte) error

func (IdentityID) Value

func (i IdentityID) Value() (driver.Value, error)

type InsightsEndpointID

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

InsightsEndpointIDs

func GenerateInsightsEndpointID

func GenerateInsightsEndpointID() InsightsEndpointID

func NewInsightsEndpointID

func NewInsightsEndpointID(ID uuid.UUID) InsightsEndpointID

func (InsightsEndpointID) GetType

func (InsightsEndpointID) GetType() string

func (InsightsEndpointID) GetUUID

func (bid InsightsEndpointID) GetUUID() uuid.UUID

func (InsightsEndpointID) MarshalText

func (id InsightsEndpointID) MarshalText() ([]byte, error)

func (*InsightsEndpointID) Scan

func (i *InsightsEndpointID) Scan(src interface{}) error

func (InsightsEndpointID) String

func (id InsightsEndpointID) String() string

func (*InsightsEndpointID) UnmarshalText

func (id *InsightsEndpointID) UnmarshalText(data []byte) error

func (InsightsEndpointID) Value

func (i InsightsEndpointID) Value() (driver.Value, error)

type LearnSessionID

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

LearnSessionIDs

func GenerateLearnSessionID

func GenerateLearnSessionID() LearnSessionID

func NewLearnSessionID

func NewLearnSessionID(ID uuid.UUID) LearnSessionID

func (LearnSessionID) GetType

func (LearnSessionID) GetType() string

func (LearnSessionID) GetUUID

func (bid LearnSessionID) GetUUID() uuid.UUID

func (LearnSessionID) MarshalText

func (id LearnSessionID) MarshalText() ([]byte, error)

func (*LearnSessionID) Scan

func (i *LearnSessionID) Scan(src interface{}) error

func (LearnSessionID) String

func (id LearnSessionID) String() string

func (*LearnSessionID) UnmarshalText

func (id *LearnSessionID) UnmarshalText(data []byte) error

func (LearnSessionID) Value

func (i LearnSessionID) Value() (driver.Value, error)

type MessageID

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

MessageIDs

func GenerateMessageID

func GenerateMessageID() MessageID

func NewMessageID

func NewMessageID(ID uuid.UUID) MessageID

func (MessageID) GetType

func (MessageID) GetType() string

func (MessageID) GetUUID

func (bid MessageID) GetUUID() uuid.UUID

func (MessageID) MarshalText

func (id MessageID) MarshalText() ([]byte, error)

func (*MessageID) Scan

func (i *MessageID) Scan(src interface{}) error

func (MessageID) String

func (id MessageID) String() string

func (*MessageID) UnmarshalText

func (id *MessageID) UnmarshalText(data []byte) error

func (MessageID) Value

func (i MessageID) Value() (driver.Value, error)

type MonitorID

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

MonitorIDs

func GenerateMonitorID

func GenerateMonitorID() MonitorID

func NewMonitorID

func NewMonitorID(ID uuid.UUID) MonitorID

func (MonitorID) GetType

func (MonitorID) GetType() string

func (MonitorID) GetUUID

func (bid MonitorID) GetUUID() uuid.UUID

func (MonitorID) MarshalText

func (id MonitorID) MarshalText() ([]byte, error)

func (*MonitorID) Scan

func (i *MonitorID) Scan(src interface{}) error

func (MonitorID) String

func (id MonitorID) String() string

func (*MonitorID) UnmarshalText

func (id *MonitorID) UnmarshalText(data []byte) error

func (MonitorID) Value

func (i MonitorID) Value() (driver.Value, error)

type OrganizationID

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

OrganizationIDs

func GenerateOrganizationID

func GenerateOrganizationID() OrganizationID

func NewOrganizationID

func NewOrganizationID(ID uuid.UUID) OrganizationID

func (OrganizationID) GetType

func (OrganizationID) GetType() string

func (OrganizationID) GetUUID

func (bid OrganizationID) GetUUID() uuid.UUID

func (OrganizationID) MarshalText

func (id OrganizationID) MarshalText() ([]byte, error)

func (*OrganizationID) Scan

func (i *OrganizationID) Scan(src interface{}) error

func (OrganizationID) String

func (id OrganizationID) String() string

func (*OrganizationID) UnmarshalText

func (id *OrganizationID) UnmarshalText(data []byte) error

func (OrganizationID) Value

func (i OrganizationID) Value() (driver.Value, error)

type OutboundRequestID

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

func GenerateOutboundRequestID

func GenerateOutboundRequestID() OutboundRequestID

func NewOutboundRequestID

func NewOutboundRequestID(ID uuid.UUID) OutboundRequestID

func (OutboundRequestID) GetType

func (OutboundRequestID) GetType() string

func (OutboundRequestID) GetUUID

func (bid OutboundRequestID) GetUUID() uuid.UUID

func (OutboundRequestID) MarshalText

func (id OutboundRequestID) MarshalText() ([]byte, error)

func (*OutboundRequestID) Scan

func (i *OutboundRequestID) Scan(src interface{}) error

func (OutboundRequestID) String

func (id OutboundRequestID) String() string

func (*OutboundRequestID) UnmarshalText

func (id *OutboundRequestID) UnmarshalText(data []byte) error

func (OutboundRequestID) Value

func (i OutboundRequestID) Value() (driver.Value, error)

type PathParameterPrefixID

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

func GeneratePathParameterPrefixID

func GeneratePathParameterPrefixID() PathParameterPrefixID

func NewPathParameterPrefixID

func NewPathParameterPrefixID(ID uuid.UUID) PathParameterPrefixID

func (PathParameterPrefixID) GetType

func (PathParameterPrefixID) GetType() string

func (PathParameterPrefixID) GetUUID

func (bid PathParameterPrefixID) GetUUID() uuid.UUID

func (PathParameterPrefixID) MarshalText

func (id PathParameterPrefixID) MarshalText() ([]byte, error)

func (*PathParameterPrefixID) Scan

func (i *PathParameterPrefixID) Scan(src interface{}) error

func (PathParameterPrefixID) String

func (id PathParameterPrefixID) String() string

func (PathParameterPrefixID) UnmarshalText

func (id PathParameterPrefixID) UnmarshalText(data []byte) error

func (PathParameterPrefixID) Value

func (i PathParameterPrefixID) Value() (driver.Value, error)

type ProjectID

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

ProjectIDs

func GenerateProjectID

func GenerateProjectID() ProjectID

func NewProjectID

func NewProjectID(ID uuid.UUID) ProjectID

func (ProjectID) GetType

func (ProjectID) GetType() string

func (ProjectID) GetUUID

func (bid ProjectID) GetUUID() uuid.UUID

func (ProjectID) MarshalText

func (i ProjectID) MarshalText() ([]byte, error)

To support JSON marshaling/unmarshaling, individual akid types must implement encoding.TextMarshaler and encoding.TextUnmarshaler. In order to allow the individual akid types to have valid zero values, baseID does not know about the tag. Thus, it cannot implement those interfaces.

func (*ProjectID) Scan

func (i *ProjectID) Scan(src interface{}) error

func (ProjectID) String

func (id ProjectID) String() string

func (*ProjectID) UnmarshalText

func (i *ProjectID) UnmarshalText(data []byte) error

func (ProjectID) Value

func (i ProjectID) Value() (driver.Value, error)

type QualifiedDeploymentID

type QualifiedDeploymentID struct {
	QualifiedServiceID
	Deployment string `json:"deployment"`
}

A deployment paired with its service ID and organization ID.

func MakeQualifiedDeploymentID

func MakeQualifiedDeploymentID(organizationID OrganizationID, serviceID ServiceID, deployment string) QualifiedDeploymentID

func (QualifiedDeploymentID) String

func (d QualifiedDeploymentID) String() string

type QualifiedLearnSessionID

type QualifiedLearnSessionID struct {
	QualifiedServiceID
	LearnSessionID LearnSessionID `json:"learn_session_id"`
}

A learn session ID paired with its service ID and organization ID.

func MakeQualifiedLearnSessionID

func MakeQualifiedLearnSessionID(organizationID OrganizationID, serviceID ServiceID, learnSessionID LearnSessionID) QualifiedLearnSessionID

func (QualifiedLearnSessionID) String

func (sessionID QualifiedLearnSessionID) String() string

type QualifiedServiceID

type QualifiedServiceID struct {
	OrganizationID OrganizationID `json:"organization_id"`
	ServiceID      ServiceID      `json:"service_id"`
}

A service ID paired with its organization ID.

func MakeQualifiedServiceID

func MakeQualifiedServiceID(organizationID OrganizationID, serviceID ServiceID) QualifiedServiceID

func (QualifiedServiceID) QualifyDeployment

func (serviceID QualifiedServiceID) QualifyDeployment(deployment string) QualifiedDeploymentID

Qualifies the given deployment with this service ID.

func (QualifiedServiceID) QualifyLearnSessionID

func (serviceID QualifiedServiceID) QualifyLearnSessionID(learnSessionID LearnSessionID) QualifiedLearnSessionID

Qualifies the given learn session ID with this service ID.

func (QualifiedServiceID) String

func (serviceID QualifiedServiceID) String() string

type RequestID

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

RequestIDs

func GenerateRequestID

func GenerateRequestID() RequestID

func NewRequestID

func NewRequestID(ID uuid.UUID) RequestID

func (RequestID) GetType

func (RequestID) GetType() string

func (RequestID) GetUUID

func (bid RequestID) GetUUID() uuid.UUID

func (RequestID) MarshalText

func (id RequestID) MarshalText() ([]byte, error)

func (*RequestID) Scan

func (i *RequestID) Scan(src interface{}) error

func (RequestID) String

func (id RequestID) String() string

func (*RequestID) UnmarshalText

func (id *RequestID) UnmarshalText(data []byte) error

func (RequestID) Value

func (i RequestID) Value() (driver.Value, error)

type RuleID

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

RuleIDs

func GenerateRuleID

func GenerateRuleID() RuleID

func NewRuleID

func NewRuleID(ID uuid.UUID) RuleID

func (RuleID) GetType

func (RuleID) GetType() string

func (RuleID) GetUUID

func (bid RuleID) GetUUID() uuid.UUID

func (RuleID) MarshalText

func (id RuleID) MarshalText() ([]byte, error)

func (*RuleID) Scan

func (i *RuleID) Scan(src interface{}) error

func (RuleID) String

func (id RuleID) String() string

func (*RuleID) UnmarshalText

func (id *RuleID) UnmarshalText(data []byte) error

func (RuleID) Value

func (i RuleID) Value() (driver.Value, error)

type ScheduleID

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

ScheduleIDs

func GenerateScheduleID

func GenerateScheduleID() ScheduleID

func NewScheduleID

func NewScheduleID(ID uuid.UUID) ScheduleID

func (ScheduleID) GetType

func (ScheduleID) GetType() string

func (ScheduleID) GetUUID

func (bid ScheduleID) GetUUID() uuid.UUID

func (ScheduleID) MarshalText

func (id ScheduleID) MarshalText() ([]byte, error)

func (*ScheduleID) Scan

func (i *ScheduleID) Scan(src interface{}) error

func (ScheduleID) String

func (id ScheduleID) String() string

func (*ScheduleID) UnmarshalText

func (id *ScheduleID) UnmarshalText(data []byte) error

func (ScheduleID) Value

func (i ScheduleID) Value() (driver.Value, error)

type ServiceClusterID

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

ServiceClusterIDs

func GenerateServiceClusterID

func GenerateServiceClusterID() ServiceClusterID

func NewServiceClusterID

func NewServiceClusterID(ID uuid.UUID) ServiceClusterID

func (ServiceClusterID) GetType

func (ServiceClusterID) GetType() string

func (ServiceClusterID) GetUUID

func (bid ServiceClusterID) GetUUID() uuid.UUID

func (ServiceClusterID) MarshalText

func (i ServiceClusterID) MarshalText() ([]byte, error)

To support JSON marshaling/unmarshaling, individual akid types must implement encoding.TextMarshaler and encoding.TextUnmarshaler. In order to allow the individual akid types to have valid zero values, baseID does not know about the tag. Thus, it cannot implement those interfaces.

func (*ServiceClusterID) Scan

func (i *ServiceClusterID) Scan(src interface{}) error

func (ServiceClusterID) String

func (id ServiceClusterID) String() string

func (*ServiceClusterID) UnmarshalText

func (i *ServiceClusterID) UnmarshalText(data []byte) error

func (ServiceClusterID) Value

func (i ServiceClusterID) Value() (driver.Value, error)

type ServiceID

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

ServiceIDs

func GenerateServiceID

func GenerateServiceID() ServiceID

func NewServiceID

func NewServiceID(ID uuid.UUID) ServiceID

func (ServiceID) GetType

func (ServiceID) GetType() string

func (ServiceID) GetUUID

func (bid ServiceID) GetUUID() uuid.UUID

func (ServiceID) MarshalText

func (id ServiceID) MarshalText() ([]byte, error)

func (*ServiceID) Scan

func (i *ServiceID) Scan(src interface{}) error

func (ServiceID) String

func (id ServiceID) String() string

func (*ServiceID) UnmarshalText

func (id *ServiceID) UnmarshalText(data []byte) error

func (ServiceID) Value

func (i ServiceID) Value() (driver.Value, error)

type ShardAliasID

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

func GenerateShardAliasID

func GenerateShardAliasID() ShardAliasID

func NewShardAliasID

func NewShardAliasID(ID uuid.UUID) ShardAliasID

func (ShardAliasID) GetType

func (ShardAliasID) GetType() string

func (ShardAliasID) GetUUID

func (bid ShardAliasID) GetUUID() uuid.UUID

func (ShardAliasID) MarshalText

func (i ShardAliasID) MarshalText() ([]byte, error)

To support JSON marshaling/unmarshaling, individual akid types must implement encoding.TextMarshaler and encoding.TextUnmarshaler. In order to allow the individual akid types to have valid zero values, baseID does not know about the tag. Thus, it cannot implement those interfaces.

func (*ShardAliasID) Scan

func (i *ShardAliasID) Scan(src interface{}) error

func (ShardAliasID) String

func (id ShardAliasID) String() string

func (*ShardAliasID) UnmarshalText

func (i *ShardAliasID) UnmarshalText(data []byte) error

func (ShardAliasID) Value

func (i ShardAliasID) Value() (driver.Value, error)

type ShardID

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

ShardIDs

func GenerateShardID

func GenerateShardID() ShardID

func NewShardID

func NewShardID(ID uuid.UUID) ShardID

func (ShardID) GetType

func (ShardID) GetType() string

func (ShardID) GetUUID

func (bid ShardID) GetUUID() uuid.UUID

func (ShardID) MarshalText

func (i ShardID) MarshalText() ([]byte, error)

To support JSON marshaling/unmarshaling, individual akid types must implement encoding.TextMarshaler and encoding.TextUnmarshaler. In order to allow the individual akid types to have valid zero values, baseID does not know about the tag. Thus, it cannot implement those interfaces.

func (*ShardID) Scan

func (i *ShardID) Scan(src interface{}) error

func (ShardID) String

func (id ShardID) String() string

func (*ShardID) UnmarshalText

func (i *ShardID) UnmarshalText(data []byte) error

func (ShardID) Value

func (i ShardID) Value() (driver.Value, error)

type UsageTrackingEventID

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

func GenerateUsageTrackingEventID

func GenerateUsageTrackingEventID() UsageTrackingEventID

func NewUsageTrackingEventID

func NewUsageTrackingEventID(ID uuid.UUID) UsageTrackingEventID

func (UsageTrackingEventID) GetType

func (UsageTrackingEventID) GetType() string

func (UsageTrackingEventID) GetUUID

func (bid UsageTrackingEventID) GetUUID() uuid.UUID

func (UsageTrackingEventID) MarshalText

func (id UsageTrackingEventID) MarshalText() ([]byte, error)

func (*UsageTrackingEventID) Scan

func (i *UsageTrackingEventID) Scan(src interface{}) error

func (UsageTrackingEventID) String

func (id UsageTrackingEventID) String() string

func (UsageTrackingEventID) UnmarshalText

func (id UsageTrackingEventID) UnmarshalText(data []byte) error

func (UsageTrackingEventID) Value

func (i UsageTrackingEventID) Value() (driver.Value, error)

type UserID

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

UserIDs

func GenerateUserID

func GenerateUserID() UserID

func NewUserID

func NewUserID(ID uuid.UUID) UserID

func (UserID) GetType

func (UserID) GetType() string

func (UserID) GetUUID

func (bid UserID) GetUUID() uuid.UUID

func (UserID) MarshalText

func (id UserID) MarshalText() ([]byte, error)

func (*UserID) Scan

func (i *UserID) Scan(src interface{}) error

func (UserID) String

func (id UserID) String() string

func (*UserID) UnmarshalText

func (id *UserID) UnmarshalText(data []byte) error

func (UserID) Value

func (i UserID) Value() (driver.Value, error)

type WitnessID

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

func GenerateWitnessID

func GenerateWitnessID() WitnessID

func NewWitnessID

func NewWitnessID(ID uuid.UUID) WitnessID

func (WitnessID) GetType

func (WitnessID) GetType() string

func (WitnessID) GetUUID

func (bid WitnessID) GetUUID() uuid.UUID

func (WitnessID) MarshalText

func (id WitnessID) MarshalText() ([]byte, error)

func (*WitnessID) Scan

func (i *WitnessID) Scan(src interface{}) error

func (WitnessID) String

func (id WitnessID) String() string

func (*WitnessID) UnmarshalText

func (id *WitnessID) UnmarshalText(data []byte) error

func (WitnessID) Value

func (i WitnessID) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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