model

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalAndRegionIDs

func GetLocalAndRegionIDs(id GlobalID) (localID int64, regionID int)

GetLocalAndRegionIDs takes a Global ID as specified in the sm data structures and returns a pair of ids corresponding to the local ID and the region ID. If the provided id is already a local one, it's returned without modification with the region set to 0.

Types

type Check

type Check struct {
	sm.Check
	RegionId int `json:"regionId"`
}

func (*Check) FromSM

func (c *Check) FromSM(check sm.Check) error

func (*Check) GlobalID

func (c *Check) GlobalID() GlobalID

func (*Check) GlobalTenantID

func (c *Check) GlobalTenantID() GlobalID

type GlobalID

type GlobalID int64

Jump to

Keyboard shortcuts

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