satellitedb

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: AGPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WrapErr = func(err *Error) error { return err }
	Logger  func(format string, args ...interface{})
)
View Source
var SQLite3JournalMode = "WAL"

SQLite3JournalMode controls the journal_mode pragma for all new connections. Since it is read without a mutex, it must be changed to the value you want before any Open calls.

Functions

func DeleteAll

func DeleteAll(ctx context.Context, db *DB) (int64, error)

Types

type AccountingRaw

type AccountingRaw struct {
	Id              int64
	NodeId          []byte
	IntervalEndTime time.Time
	DataTotal       float64
	DataType        int
	CreatedAt       time.Time
}

type AccountingRaw_CreatedAt_Field

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

func AccountingRaw_CreatedAt

func AccountingRaw_CreatedAt(v time.Time) AccountingRaw_CreatedAt_Field

type AccountingRaw_DataTotal_Field

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

func AccountingRaw_DataTotal

func AccountingRaw_DataTotal(v float64) AccountingRaw_DataTotal_Field

type AccountingRaw_DataType_Field

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

func AccountingRaw_DataType

func AccountingRaw_DataType(v int) AccountingRaw_DataType_Field

type AccountingRaw_Id_Field

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

func AccountingRaw_Id

func AccountingRaw_Id(v int64) AccountingRaw_Id_Field

type AccountingRaw_IntervalEndTime_Field

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

type AccountingRaw_NodeId_Field

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

func AccountingRaw_NodeId

func AccountingRaw_NodeId(v []byte) AccountingRaw_NodeId_Field

type AccountingRaw_Update_Fields

type AccountingRaw_Update_Fields struct {
}

type AccountingRollup

type AccountingRollup struct {
	Id             int64
	NodeId         []byte
	StartTime      time.Time
	PutTotal       int64
	GetTotal       int64
	GetAuditTotal  int64
	GetRepairTotal int64
	PutRepairTotal int64
	AtRestTotal    float64
}

type AccountingRollup_AtRestTotal_Field

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

type AccountingRollup_GetAuditTotal_Field

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

func AccountingRollup_GetAuditTotal

func AccountingRollup_GetAuditTotal(v int64) AccountingRollup_GetAuditTotal_Field

type AccountingRollup_GetRepairTotal_Field

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

func AccountingRollup_GetRepairTotal

func AccountingRollup_GetRepairTotal(v int64) AccountingRollup_GetRepairTotal_Field

type AccountingRollup_GetTotal_Field

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

func AccountingRollup_GetTotal

func AccountingRollup_GetTotal(v int64) AccountingRollup_GetTotal_Field

type AccountingRollup_Id_Field

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

func AccountingRollup_Id

func AccountingRollup_Id(v int64) AccountingRollup_Id_Field

type AccountingRollup_NodeId_Field

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

func AccountingRollup_NodeId

func AccountingRollup_NodeId(v []byte) AccountingRollup_NodeId_Field

type AccountingRollup_PutRepairTotal_Field

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

func AccountingRollup_PutRepairTotal

func AccountingRollup_PutRepairTotal(v int64) AccountingRollup_PutRepairTotal_Field

type AccountingRollup_PutTotal_Field

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

func AccountingRollup_PutTotal

func AccountingRollup_PutTotal(v int64) AccountingRollup_PutTotal_Field

type AccountingRollup_StartTime_Field

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

func AccountingRollup_StartTime

func AccountingRollup_StartTime(v time.Time) AccountingRollup_StartTime_Field

type AccountingRollup_Update_Fields

type AccountingRollup_Update_Fields struct {
}

type AccountingTimestamps

type AccountingTimestamps struct {
	Name  string
	Value time.Time
}

type AccountingTimestamps_Name_Field

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

func AccountingTimestamps_Name

func AccountingTimestamps_Name(v string) AccountingTimestamps_Name_Field

type AccountingTimestamps_Update_Fields

type AccountingTimestamps_Update_Fields struct {
	Value AccountingTimestamps_Value_Field
}

type AccountingTimestamps_Value_Field

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

func AccountingTimestamps_Value

func AccountingTimestamps_Value(v time.Time) AccountingTimestamps_Value_Field

type ApiKey

type ApiKey struct {
	Id        []byte
	ProjectId []byte
	Key       []byte
	Name      string
	CreatedAt time.Time
}

type ApiKey_CreatedAt_Field

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

func ApiKey_CreatedAt

func ApiKey_CreatedAt(v time.Time) ApiKey_CreatedAt_Field

type ApiKey_Id_Field

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

func ApiKey_Id

func ApiKey_Id(v []byte) ApiKey_Id_Field

type ApiKey_Key_Field

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

func ApiKey_Key

func ApiKey_Key(v []byte) ApiKey_Key_Field

type ApiKey_Name_Field

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

func ApiKey_Name

func ApiKey_Name(v string) ApiKey_Name_Field

type ApiKey_ProjectId_Field

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

func ApiKey_ProjectId

func ApiKey_ProjectId(v []byte) ApiKey_ProjectId_Field

type ApiKey_Update_Fields

type ApiKey_Update_Fields struct {
	Name ApiKey_Name_Field
}

type BucketBandwidthRollup

type BucketBandwidthRollup struct {
	BucketName      []byte
	ProjectId       []byte
	IntervalStart   time.Time
	IntervalSeconds uint
	Action          uint
	Inline          uint64
	Allocated       uint64
	Settled         uint64
}

type BucketBandwidthRollup_Action_Field

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

func BucketBandwidthRollup_Action

func BucketBandwidthRollup_Action(v uint) BucketBandwidthRollup_Action_Field

type BucketBandwidthRollup_Allocated_Field

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

type BucketBandwidthRollup_BucketName_Field

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

func BucketBandwidthRollup_BucketName

func BucketBandwidthRollup_BucketName(v []byte) BucketBandwidthRollup_BucketName_Field

type BucketBandwidthRollup_Inline_Field

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

func BucketBandwidthRollup_Inline

func BucketBandwidthRollup_Inline(v uint64) BucketBandwidthRollup_Inline_Field

type BucketBandwidthRollup_IntervalSeconds_Field

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

type BucketBandwidthRollup_IntervalStart_Field

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

type BucketBandwidthRollup_ProjectId_Field

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

func BucketBandwidthRollup_ProjectId

func BucketBandwidthRollup_ProjectId(v []byte) BucketBandwidthRollup_ProjectId_Field

type BucketBandwidthRollup_Settled_Field

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

func BucketBandwidthRollup_Settled

func BucketBandwidthRollup_Settled(v uint64) BucketBandwidthRollup_Settled_Field

type BucketStorageTally

type BucketStorageTally struct {
	BucketName          []byte
	ProjectId           []byte
	IntervalStart       time.Time
	Inline              uint64
	Remote              uint64
	RemoteSegmentsCount uint
	InlineSegmentsCount uint
	ObjectCount         uint
	MetadataSize        uint64
}

type BucketStorageTally_BucketName_Field

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

func BucketStorageTally_BucketName

func BucketStorageTally_BucketName(v []byte) BucketStorageTally_BucketName_Field

type BucketStorageTally_InlineSegmentsCount_Field

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

type BucketStorageTally_Inline_Field

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

func BucketStorageTally_Inline

func BucketStorageTally_Inline(v uint64) BucketStorageTally_Inline_Field

type BucketStorageTally_IntervalStart_Field

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

type BucketStorageTally_MetadataSize_Field

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

type BucketStorageTally_ObjectCount_Field

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

func BucketStorageTally_ObjectCount

func BucketStorageTally_ObjectCount(v uint) BucketStorageTally_ObjectCount_Field

type BucketStorageTally_ProjectId_Field

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

func BucketStorageTally_ProjectId

func BucketStorageTally_ProjectId(v []byte) BucketStorageTally_ProjectId_Field

type BucketStorageTally_RemoteSegmentsCount_Field

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

type BucketStorageTally_Remote_Field

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

func BucketStorageTally_Remote

func BucketStorageTally_Remote(v uint64) BucketStorageTally_Remote_Field

type BucketStorageTally_Update_Fields

type BucketStorageTally_Update_Fields struct {
}

type BucketUsage

type BucketUsage struct {
	Id               []byte
	BucketId         []byte
	RollupEndTime    time.Time
	RemoteStoredData uint64
	InlineStoredData uint64
	RemoteSegments   uint
	InlineSegments   uint
	Objects          uint
	MetadataSize     uint64
	RepairEgress     uint64
	GetEgress        uint64
	AuditEgress      uint64
}

type BucketUsage_AuditEgress_Field

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

func BucketUsage_AuditEgress

func BucketUsage_AuditEgress(v uint64) BucketUsage_AuditEgress_Field

type BucketUsage_BucketId_Field

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

func BucketUsage_BucketId

func BucketUsage_BucketId(v []byte) BucketUsage_BucketId_Field

type BucketUsage_GetEgress_Field

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

func BucketUsage_GetEgress

func BucketUsage_GetEgress(v uint64) BucketUsage_GetEgress_Field

type BucketUsage_Id_Field

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

func BucketUsage_Id

func BucketUsage_Id(v []byte) BucketUsage_Id_Field

type BucketUsage_InlineSegments_Field

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

func BucketUsage_InlineSegments

func BucketUsage_InlineSegments(v uint) BucketUsage_InlineSegments_Field

type BucketUsage_InlineStoredData_Field

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

func BucketUsage_InlineStoredData

func BucketUsage_InlineStoredData(v uint64) BucketUsage_InlineStoredData_Field

type BucketUsage_MetadataSize_Field

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

func BucketUsage_MetadataSize

func BucketUsage_MetadataSize(v uint64) BucketUsage_MetadataSize_Field

type BucketUsage_Objects_Field

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

func BucketUsage_Objects

func BucketUsage_Objects(v uint) BucketUsage_Objects_Field

type BucketUsage_RemoteSegments_Field

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

func BucketUsage_RemoteSegments

func BucketUsage_RemoteSegments(v uint) BucketUsage_RemoteSegments_Field

type BucketUsage_RemoteStoredData_Field

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

func BucketUsage_RemoteStoredData

func BucketUsage_RemoteStoredData(v uint64) BucketUsage_RemoteStoredData_Field

type BucketUsage_RepairEgress_Field

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

func BucketUsage_RepairEgress

func BucketUsage_RepairEgress(v uint64) BucketUsage_RepairEgress_Field

type BucketUsage_RollupEndTime_Field

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

func BucketUsage_RollupEndTime

func BucketUsage_RollupEndTime(v time.Time) BucketUsage_RollupEndTime_Field

type BucketUsage_Update_Fields

type BucketUsage_Update_Fields struct {
}

type Bwagreement

type Bwagreement struct {
	Serialnum     string
	StorageNodeId []byte
	UplinkId      []byte
	Action        int64
	Total         int64
	CreatedAt     time.Time
	ExpiresAt     time.Time
}

type Bwagreement_Action_Field

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

func Bwagreement_Action

func Bwagreement_Action(v int64) Bwagreement_Action_Field

type Bwagreement_CreatedAt_Field

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

func Bwagreement_CreatedAt

func Bwagreement_CreatedAt(v time.Time) Bwagreement_CreatedAt_Field

type Bwagreement_ExpiresAt_Field

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

func Bwagreement_ExpiresAt

func Bwagreement_ExpiresAt(v time.Time) Bwagreement_ExpiresAt_Field

type Bwagreement_Serialnum_Field

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

func Bwagreement_Serialnum

func Bwagreement_Serialnum(v string) Bwagreement_Serialnum_Field

type Bwagreement_StorageNodeId_Field

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

func Bwagreement_StorageNodeId

func Bwagreement_StorageNodeId(v []byte) Bwagreement_StorageNodeId_Field

type Bwagreement_Total_Field

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

func Bwagreement_Total

func Bwagreement_Total(v int64) Bwagreement_Total_Field

type Bwagreement_Update_Fields

type Bwagreement_Update_Fields struct {
}

type Bwagreement_UplinkId_Field

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

func Bwagreement_UplinkId

func Bwagreement_UplinkId(v []byte) Bwagreement_UplinkId_Field

type CertRecord

type CertRecord struct {
	Publickey []byte
	Id        []byte
	UpdateAt  time.Time
}

type CertRecord_Id_Field

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

func CertRecord_Id

func CertRecord_Id(v []byte) CertRecord_Id_Field

type CertRecord_Publickey_Field

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

func CertRecord_Publickey

func CertRecord_Publickey(v []byte) CertRecord_Publickey_Field

type CertRecord_UpdateAt_Field

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

func CertRecord_UpdateAt

func CertRecord_UpdateAt(v time.Time) CertRecord_UpdateAt_Field

type CertRecord_Update_Fields

type CertRecord_Update_Fields struct {
}

type DB

type DB struct {
	*sql.DB

	Hooks struct {
		Now func() time.Time
	}
	// contains filtered or unexported fields
}

func Open

func Open(driver, source string) (db *DB, err error)

func (*DB) Close

func (obj *DB) Close() (err error)

func (*DB) NewRx

func (obj *DB) NewRx() *Rx

func (*DB) Open

func (obj *DB) Open(ctx context.Context) (*Tx, error)

func (*DB) WithTx

func (db *DB) WithTx(ctx context.Context, fn func(context.Context, *Tx) error) (err error)

WithTx wraps DB code in a transaction

type DBMethods

type DBMethods interface {
	Methods

	Schema() string
	Rebind(sql string) string
}

type Error

type Error struct {
	Err         error
	Code        ErrorCode
	Driver      string
	Constraint  string
	QuerySuffix string
}

func (*Error) Error

func (e *Error) Error() string

type ErrorCode

type ErrorCode int
const (
	ErrorCode_Unknown ErrorCode = iota
	ErrorCode_UnsupportedDriver
	ErrorCode_NoRows
	ErrorCode_TxDone
	ErrorCode_TooManyRows
	ErrorCode_ConstraintViolation
	ErrorCode_EmptyUpdate
)

type Id_Row

type Id_Row struct {
	Id []byte
}

type Injuredsegment

type Injuredsegment struct {
	Id   int64
	Info []byte
}

type Injuredsegment_Id_Field

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

func Injuredsegment_Id

func Injuredsegment_Id(v int64) Injuredsegment_Id_Field

type Injuredsegment_Info_Field

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

func Injuredsegment_Info

func Injuredsegment_Info(v []byte) Injuredsegment_Info_Field

type Injuredsegment_Update_Fields

type Injuredsegment_Update_Fields struct {
}

type Irreparabledb

type Irreparabledb struct {
	Segmentpath        []byte
	Segmentdetail      []byte
	PiecesLostCount    int64
	SegDamagedUnixSec  int64
	RepairAttemptCount int64
}

type Irreparabledb_PiecesLostCount_Field

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

func Irreparabledb_PiecesLostCount

func Irreparabledb_PiecesLostCount(v int64) Irreparabledb_PiecesLostCount_Field

type Irreparabledb_RepairAttemptCount_Field

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

type Irreparabledb_SegDamagedUnixSec_Field

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

func Irreparabledb_SegDamagedUnixSec

func Irreparabledb_SegDamagedUnixSec(v int64) Irreparabledb_SegDamagedUnixSec_Field

type Irreparabledb_Segmentdetail_Field

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

func Irreparabledb_Segmentdetail

func Irreparabledb_Segmentdetail(v []byte) Irreparabledb_Segmentdetail_Field

type Irreparabledb_Segmentpath_Field

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

func Irreparabledb_Segmentpath

func Irreparabledb_Segmentpath(v []byte) Irreparabledb_Segmentpath_Field

type Irreparabledb_Update_Fields

type Irreparabledb_Update_Fields struct {
	Segmentdetail      Irreparabledb_Segmentdetail_Field
	PiecesLostCount    Irreparabledb_PiecesLostCount_Field
	SegDamagedUnixSec  Irreparabledb_SegDamagedUnixSec_Field
	RepairAttemptCount Irreparabledb_RepairAttemptCount_Field
}

type Methods

type Methods interface {
	All_AccountingRaw(ctx context.Context) (
		rows []*AccountingRaw, err error)

	All_AccountingRaw_By_IntervalEndTime_GreaterOrEqual(ctx context.Context,
		accounting_raw_interval_end_time_greater_or_equal AccountingRaw_IntervalEndTime_Field) (
		rows []*AccountingRaw, err error)

	All_AccountingRollup_By_StartTime_GreaterOrEqual(ctx context.Context,
		accounting_rollup_start_time_greater_or_equal AccountingRollup_StartTime_Field) (
		rows []*AccountingRollup, err error)

	All_ApiKey_By_ProjectId_OrderBy_Asc_Name(ctx context.Context,
		api_key_project_id ApiKey_ProjectId_Field) (
		rows []*ApiKey, err error)

	All_BucketStorageTally_By_ProjectId_And_BucketName_And_IntervalStart_GreaterOrEqual_And_IntervalStart_LessOrEqual_OrderBy_Desc_IntervalStart(ctx context.Context,
		bucket_storage_tally_project_id BucketStorageTally_ProjectId_Field,
		bucket_storage_tally_bucket_name BucketStorageTally_BucketName_Field,
		bucket_storage_tally_interval_start_greater_or_equal BucketStorageTally_IntervalStart_Field,
		bucket_storage_tally_interval_start_less_or_equal BucketStorageTally_IntervalStart_Field) (
		rows []*BucketStorageTally, err error)

	All_Node_Id(ctx context.Context) (
		rows []*Id_Row, err error)

	All_Project(ctx context.Context) (
		rows []*Project, err error)

	All_ProjectMember_By_MemberId(ctx context.Context,
		project_member_member_id ProjectMember_MemberId_Field) (
		rows []*ProjectMember, err error)

	All_Project_By_ProjectMember_MemberId_OrderBy_Asc_Project_Name(ctx context.Context,
		project_member_member_id ProjectMember_MemberId_Field) (
		rows []*Project, err error)

	All_StoragenodeBandwidthRollup_By_IntervalStart_GreaterOrEqual(ctx context.Context,
		storagenode_bandwidth_rollup_interval_start_greater_or_equal StoragenodeBandwidthRollup_IntervalStart_Field) (
		rows []*StoragenodeBandwidthRollup, err error)

	Create_AccountingRaw(ctx context.Context,
		accounting_raw_node_id AccountingRaw_NodeId_Field,
		accounting_raw_interval_end_time AccountingRaw_IntervalEndTime_Field,
		accounting_raw_data_total AccountingRaw_DataTotal_Field,
		accounting_raw_data_type AccountingRaw_DataType_Field,
		accounting_raw_created_at AccountingRaw_CreatedAt_Field) (
		accounting_raw *AccountingRaw, err error)

	Create_AccountingRollup(ctx context.Context,
		accounting_rollup_node_id AccountingRollup_NodeId_Field,
		accounting_rollup_start_time AccountingRollup_StartTime_Field,
		accounting_rollup_put_total AccountingRollup_PutTotal_Field,
		accounting_rollup_get_total AccountingRollup_GetTotal_Field,
		accounting_rollup_get_audit_total AccountingRollup_GetAuditTotal_Field,
		accounting_rollup_get_repair_total AccountingRollup_GetRepairTotal_Field,
		accounting_rollup_put_repair_total AccountingRollup_PutRepairTotal_Field,
		accounting_rollup_at_rest_total AccountingRollup_AtRestTotal_Field) (
		accounting_rollup *AccountingRollup, err error)

	Create_AccountingTimestamps(ctx context.Context,
		accounting_timestamps_name AccountingTimestamps_Name_Field,
		accounting_timestamps_value AccountingTimestamps_Value_Field) (
		accounting_timestamps *AccountingTimestamps, err error)

	Create_ApiKey(ctx context.Context,
		api_key_id ApiKey_Id_Field,
		api_key_project_id ApiKey_ProjectId_Field,
		api_key_key ApiKey_Key_Field,
		api_key_name ApiKey_Name_Field) (
		api_key *ApiKey, err error)

	Create_BucketStorageTally(ctx context.Context,
		bucket_storage_tally_bucket_name BucketStorageTally_BucketName_Field,
		bucket_storage_tally_project_id BucketStorageTally_ProjectId_Field,
		bucket_storage_tally_interval_start BucketStorageTally_IntervalStart_Field,
		bucket_storage_tally_inline BucketStorageTally_Inline_Field,
		bucket_storage_tally_remote BucketStorageTally_Remote_Field,
		bucket_storage_tally_remote_segments_count BucketStorageTally_RemoteSegmentsCount_Field,
		bucket_storage_tally_inline_segments_count BucketStorageTally_InlineSegmentsCount_Field,
		bucket_storage_tally_object_count BucketStorageTally_ObjectCount_Field,
		bucket_storage_tally_metadata_size BucketStorageTally_MetadataSize_Field) (
		bucket_storage_tally *BucketStorageTally, err error)

	Create_BucketUsage(ctx context.Context,
		bucket_usage_id BucketUsage_Id_Field,
		bucket_usage_bucket_id BucketUsage_BucketId_Field,
		bucket_usage_rollup_end_time BucketUsage_RollupEndTime_Field,
		bucket_usage_remote_stored_data BucketUsage_RemoteStoredData_Field,
		bucket_usage_inline_stored_data BucketUsage_InlineStoredData_Field,
		bucket_usage_remote_segments BucketUsage_RemoteSegments_Field,
		bucket_usage_inline_segments BucketUsage_InlineSegments_Field,
		bucket_usage_objects BucketUsage_Objects_Field,
		bucket_usage_metadata_size BucketUsage_MetadataSize_Field,
		bucket_usage_repair_egress BucketUsage_RepairEgress_Field,
		bucket_usage_get_egress BucketUsage_GetEgress_Field,
		bucket_usage_audit_egress BucketUsage_AuditEgress_Field) (
		bucket_usage *BucketUsage, err error)

	Create_CertRecord(ctx context.Context,
		certRecord_publickey CertRecord_Publickey_Field,
		certRecord_id CertRecord_Id_Field) (
		certRecord *CertRecord, err error)

	Create_Injuredsegment(ctx context.Context,
		injuredsegment_info Injuredsegment_Info_Field) (
		injuredsegment *Injuredsegment, err error)

	Create_Irreparabledb(ctx context.Context,
		irreparabledb_segmentpath Irreparabledb_Segmentpath_Field,
		irreparabledb_segmentdetail Irreparabledb_Segmentdetail_Field,
		irreparabledb_pieces_lost_count Irreparabledb_PiecesLostCount_Field,
		irreparabledb_seg_damaged_unix_sec Irreparabledb_SegDamagedUnixSec_Field,
		irreparabledb_repair_attempt_count Irreparabledb_RepairAttemptCount_Field) (
		irreparabledb *Irreparabledb, err error)

	Create_Node(ctx context.Context,
		node_id Node_Id_Field,
		node_address Node_Address_Field,
		node_protocol Node_Protocol_Field,
		node_type Node_Type_Field,
		node_email Node_Email_Field,
		node_wallet Node_Wallet_Field,
		node_free_bandwidth Node_FreeBandwidth_Field,
		node_free_disk Node_FreeDisk_Field,
		node_major Node_Major_Field,
		node_minor Node_Minor_Field,
		node_patch Node_Patch_Field,
		node_hash Node_Hash_Field,
		node_timestamp Node_Timestamp_Field,
		node_release Node_Release_Field,
		node_latency_90 Node_Latency90_Field,
		node_audit_success_count Node_AuditSuccessCount_Field,
		node_total_audit_count Node_TotalAuditCount_Field,
		node_audit_success_ratio Node_AuditSuccessRatio_Field,
		node_uptime_success_count Node_UptimeSuccessCount_Field,
		node_total_uptime_count Node_TotalUptimeCount_Field,
		node_uptime_ratio Node_UptimeRatio_Field,
		node_last_contact_success Node_LastContactSuccess_Field,
		node_last_contact_failure Node_LastContactFailure_Field) (
		node *Node, err error)

	Create_Project(ctx context.Context,
		project_id Project_Id_Field,
		project_name Project_Name_Field,
		project_description Project_Description_Field) (
		project *Project, err error)

	Create_ProjectMember(ctx context.Context,
		project_member_member_id ProjectMember_MemberId_Field,
		project_member_project_id ProjectMember_ProjectId_Field) (
		project_member *ProjectMember, err error)

	Create_RegistrationToken(ctx context.Context,
		registration_token_secret RegistrationToken_Secret_Field,
		registration_token_project_limit RegistrationToken_ProjectLimit_Field,
		optional RegistrationToken_Create_Fields) (
		registration_token *RegistrationToken, err error)

	Create_SerialNumber(ctx context.Context,
		serial_number_serial_number SerialNumber_SerialNumber_Field,
		serial_number_bucket_id SerialNumber_BucketId_Field,
		serial_number_expires_at SerialNumber_ExpiresAt_Field) (
		serial_number *SerialNumber, err error)

	Create_UsedSerial(ctx context.Context,
		used_serial_serial_number_id UsedSerial_SerialNumberId_Field,
		used_serial_storage_node_id UsedSerial_StorageNodeId_Field) (
		used_serial *UsedSerial, err error)

	Create_User(ctx context.Context,
		user_id User_Id_Field,
		user_full_name User_FullName_Field,
		user_email User_Email_Field,
		user_password_hash User_PasswordHash_Field,
		optional User_Create_Fields) (
		user *User, err error)

	Delete_AccountingRaw_By_Id(ctx context.Context,
		accounting_raw_id AccountingRaw_Id_Field) (
		deleted bool, err error)

	Delete_AccountingRollup_By_Id(ctx context.Context,
		accounting_rollup_id AccountingRollup_Id_Field) (
		deleted bool, err error)

	Delete_ApiKey_By_Id(ctx context.Context,
		api_key_id ApiKey_Id_Field) (
		deleted bool, err error)

	Delete_BucketUsage_By_Id(ctx context.Context,
		bucket_usage_id BucketUsage_Id_Field) (
		deleted bool, err error)

	Delete_CertRecord_By_Id(ctx context.Context,
		certRecord_id CertRecord_Id_Field) (
		deleted bool, err error)

	Delete_Injuredsegment_By_Id(ctx context.Context,
		injuredsegment_id Injuredsegment_Id_Field) (
		deleted bool, err error)

	Delete_Irreparabledb_By_Segmentpath(ctx context.Context,
		irreparabledb_segmentpath Irreparabledb_Segmentpath_Field) (
		deleted bool, err error)

	Delete_Node_By_Id(ctx context.Context,
		node_id Node_Id_Field) (
		deleted bool, err error)

	Delete_ProjectMember_By_MemberId_And_ProjectId(ctx context.Context,
		project_member_member_id ProjectMember_MemberId_Field,
		project_member_project_id ProjectMember_ProjectId_Field) (
		deleted bool, err error)

	Delete_Project_By_Id(ctx context.Context,
		project_id Project_Id_Field) (
		deleted bool, err error)

	Delete_SerialNumber_By_ExpiresAt_LessOrEqual(ctx context.Context,
		serial_number_expires_at_less_or_equal SerialNumber_ExpiresAt_Field) (
		count int64, err error)

	Delete_User_By_Id(ctx context.Context,
		user_id User_Id_Field) (
		deleted bool, err error)

	Find_AccountingTimestamps_Value_By_Name(ctx context.Context,
		accounting_timestamps_name AccountingTimestamps_Name_Field) (
		row *Value_Row, err error)

	Find_BucketBandwidthRollup_By_BucketName_And_ProjectId_And_IntervalStart_And_Action(ctx context.Context,
		bucket_bandwidth_rollup_bucket_name BucketBandwidthRollup_BucketName_Field,
		bucket_bandwidth_rollup_project_id BucketBandwidthRollup_ProjectId_Field,
		bucket_bandwidth_rollup_interval_start BucketBandwidthRollup_IntervalStart_Field,
		bucket_bandwidth_rollup_action BucketBandwidthRollup_Action_Field) (
		bucket_bandwidth_rollup *BucketBandwidthRollup, err error)

	Find_SerialNumber_By_SerialNumber(ctx context.Context,
		serial_number_serial_number SerialNumber_SerialNumber_Field) (
		serial_number *SerialNumber, err error)

	Find_StoragenodeBandwidthRollup_By_StoragenodeId_And_IntervalStart_And_Action(ctx context.Context,
		storagenode_bandwidth_rollup_storagenode_id StoragenodeBandwidthRollup_StoragenodeId_Field,
		storagenode_bandwidth_rollup_interval_start StoragenodeBandwidthRollup_IntervalStart_Field,
		storagenode_bandwidth_rollup_action StoragenodeBandwidthRollup_Action_Field) (
		storagenode_bandwidth_rollup *StoragenodeBandwidthRollup, err error)

	First_BucketStorageTally_By_ProjectId_OrderBy_Desc_IntervalStart(ctx context.Context,
		bucket_storage_tally_project_id BucketStorageTally_ProjectId_Field) (
		bucket_storage_tally *BucketStorageTally, err error)

	First_Injuredsegment(ctx context.Context) (
		injuredsegment *Injuredsegment, err error)

	Get_AccountingRaw_By_Id(ctx context.Context,
		accounting_raw_id AccountingRaw_Id_Field) (
		accounting_raw *AccountingRaw, err error)

	Get_AccountingRollup_By_Id(ctx context.Context,
		accounting_rollup_id AccountingRollup_Id_Field) (
		accounting_rollup *AccountingRollup, err error)

	Get_ApiKey_By_Id(ctx context.Context,
		api_key_id ApiKey_Id_Field) (
		api_key *ApiKey, err error)

	Get_ApiKey_By_Key(ctx context.Context,
		api_key_key ApiKey_Key_Field) (
		api_key *ApiKey, err error)

	Get_BucketUsage_By_Id(ctx context.Context,
		bucket_usage_id BucketUsage_Id_Field) (
		bucket_usage *BucketUsage, err error)

	Get_CertRecord_By_Id(ctx context.Context,
		certRecord_id CertRecord_Id_Field) (
		certRecord *CertRecord, err error)

	Get_Irreparabledb_By_Segmentpath(ctx context.Context,
		irreparabledb_segmentpath Irreparabledb_Segmentpath_Field) (
		irreparabledb *Irreparabledb, err error)

	Get_Node_By_Id(ctx context.Context,
		node_id Node_Id_Field) (
		node *Node, err error)

	Get_Project_By_Id(ctx context.Context,
		project_id Project_Id_Field) (
		project *Project, err error)

	Get_RegistrationToken_By_OwnerId(ctx context.Context,
		registration_token_owner_id RegistrationToken_OwnerId_Field) (
		registration_token *RegistrationToken, err error)

	Get_RegistrationToken_By_Secret(ctx context.Context,
		registration_token_secret RegistrationToken_Secret_Field) (
		registration_token *RegistrationToken, err error)

	Get_User_By_Email_And_Status_Not_Number(ctx context.Context,
		user_email User_Email_Field) (
		user *User, err error)

	Get_User_By_Id(ctx context.Context,
		user_id User_Id_Field) (
		user *User, err error)

	Limited_BucketUsage_By_BucketId_And_RollupEndTime_Greater_And_RollupEndTime_LessOrEqual_OrderBy_Asc_RollupEndTime(ctx context.Context,
		bucket_usage_bucket_id BucketUsage_BucketId_Field,
		bucket_usage_rollup_end_time_greater BucketUsage_RollupEndTime_Field,
		bucket_usage_rollup_end_time_less_or_equal BucketUsage_RollupEndTime_Field,
		limit int, offset int64) (
		rows []*BucketUsage, err error)

	Limited_BucketUsage_By_BucketId_And_RollupEndTime_Greater_And_RollupEndTime_LessOrEqual_OrderBy_Desc_RollupEndTime(ctx context.Context,
		bucket_usage_bucket_id BucketUsage_BucketId_Field,
		bucket_usage_rollup_end_time_greater BucketUsage_RollupEndTime_Field,
		bucket_usage_rollup_end_time_less_or_equal BucketUsage_RollupEndTime_Field,
		limit int, offset int64) (
		rows []*BucketUsage, err error)

	Limited_Injuredsegment(ctx context.Context,
		limit int, offset int64) (
		rows []*Injuredsegment, err error)

	Limited_Irreparabledb_OrderBy_Asc_Segmentpath(ctx context.Context,
		limit int, offset int64) (
		rows []*Irreparabledb, err error)

	Limited_Node_By_Id_GreaterOrEqual_OrderBy_Asc_Id(ctx context.Context,
		node_id_greater_or_equal Node_Id_Field,
		limit int, offset int64) (
		rows []*Node, err error)

	Limited_ProjectMember_By_ProjectId(ctx context.Context,
		project_member_project_id ProjectMember_ProjectId_Field,
		limit int, offset int64) (
		rows []*ProjectMember, err error)

	Update_AccountingTimestamps_By_Name(ctx context.Context,
		accounting_timestamps_name AccountingTimestamps_Name_Field,
		update AccountingTimestamps_Update_Fields) (
		accounting_timestamps *AccountingTimestamps, err error)

	Update_ApiKey_By_Id(ctx context.Context,
		api_key_id ApiKey_Id_Field,
		update ApiKey_Update_Fields) (
		api_key *ApiKey, err error)

	Update_CertRecord_By_Id(ctx context.Context,
		certRecord_id CertRecord_Id_Field,
		update CertRecord_Update_Fields) (
		certRecord *CertRecord, err error)

	Update_Irreparabledb_By_Segmentpath(ctx context.Context,
		irreparabledb_segmentpath Irreparabledb_Segmentpath_Field,
		update Irreparabledb_Update_Fields) (
		irreparabledb *Irreparabledb, err error)

	Update_Node_By_Id(ctx context.Context,
		node_id Node_Id_Field,
		update Node_Update_Fields) (
		node *Node, err error)

	Update_Project_By_Id(ctx context.Context,
		project_id Project_Id_Field,
		update Project_Update_Fields) (
		project *Project, err error)

	Update_RegistrationToken_By_Secret(ctx context.Context,
		registration_token_secret RegistrationToken_Secret_Field,
		update RegistrationToken_Update_Fields) (
		registration_token *RegistrationToken, err error)

	Update_User_By_Id(ctx context.Context,
		user_id User_Id_Field,
		update User_Update_Fields) (
		user *User, err error)
}

type Node

type Node struct {
	Id                 []byte
	Address            string
	Protocol           int
	Type               int
	Email              string
	Wallet             string
	FreeBandwidth      int64
	FreeDisk           int64
	Major              int64
	Minor              int64
	Patch              int64
	Hash               string
	Timestamp          time.Time
	Release            bool
	Latency90          int64
	AuditSuccessCount  int64
	TotalAuditCount    int64
	AuditSuccessRatio  float64
	UptimeSuccessCount int64
	TotalUptimeCount   int64
	UptimeRatio        float64
	CreatedAt          time.Time
	UpdatedAt          time.Time
	LastContactSuccess time.Time
	LastContactFailure time.Time
}

type Node_Address_Field

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

func Node_Address

func Node_Address(v string) Node_Address_Field

type Node_AuditSuccessCount_Field

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

func Node_AuditSuccessCount

func Node_AuditSuccessCount(v int64) Node_AuditSuccessCount_Field

type Node_AuditSuccessRatio_Field

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

func Node_AuditSuccessRatio

func Node_AuditSuccessRatio(v float64) Node_AuditSuccessRatio_Field

type Node_CreatedAt_Field

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

func Node_CreatedAt

func Node_CreatedAt(v time.Time) Node_CreatedAt_Field

type Node_Email_Field

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

func Node_Email

func Node_Email(v string) Node_Email_Field

type Node_FreeBandwidth_Field

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

func Node_FreeBandwidth

func Node_FreeBandwidth(v int64) Node_FreeBandwidth_Field

type Node_FreeDisk_Field

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

func Node_FreeDisk

func Node_FreeDisk(v int64) Node_FreeDisk_Field

type Node_Hash_Field added in v0.8.1

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

func Node_Hash added in v0.8.1

func Node_Hash(v string) Node_Hash_Field

type Node_Id_Field

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

func Node_Id

func Node_Id(v []byte) Node_Id_Field

type Node_LastContactFailure_Field

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

func Node_LastContactFailure

func Node_LastContactFailure(v time.Time) Node_LastContactFailure_Field

type Node_LastContactSuccess_Field

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

func Node_LastContactSuccess

func Node_LastContactSuccess(v time.Time) Node_LastContactSuccess_Field

type Node_Latency90_Field

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

func Node_Latency90

func Node_Latency90(v int64) Node_Latency90_Field

type Node_Major_Field added in v0.8.1

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

func Node_Major added in v0.8.1

func Node_Major(v int64) Node_Major_Field

type Node_Minor_Field added in v0.8.1

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

func Node_Minor added in v0.8.1

func Node_Minor(v int64) Node_Minor_Field

type Node_Patch_Field added in v0.8.1

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

func Node_Patch added in v0.8.1

func Node_Patch(v int64) Node_Patch_Field

type Node_Protocol_Field

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

func Node_Protocol

func Node_Protocol(v int) Node_Protocol_Field

type Node_Release_Field added in v0.8.1

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

func Node_Release added in v0.8.1

func Node_Release(v bool) Node_Release_Field

type Node_Timestamp_Field added in v0.8.1

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

func Node_Timestamp added in v0.8.1

func Node_Timestamp(v time.Time) Node_Timestamp_Field

type Node_TotalAuditCount_Field

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

func Node_TotalAuditCount

func Node_TotalAuditCount(v int64) Node_TotalAuditCount_Field

type Node_TotalUptimeCount_Field

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

func Node_TotalUptimeCount

func Node_TotalUptimeCount(v int64) Node_TotalUptimeCount_Field

type Node_Type_Field

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

func Node_Type

func Node_Type(v int) Node_Type_Field

type Node_UpdatedAt_Field

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

func Node_UpdatedAt

func Node_UpdatedAt(v time.Time) Node_UpdatedAt_Field

type Node_UptimeRatio_Field

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

func Node_UptimeRatio

func Node_UptimeRatio(v float64) Node_UptimeRatio_Field

type Node_UptimeSuccessCount_Field

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

func Node_UptimeSuccessCount

func Node_UptimeSuccessCount(v int64) Node_UptimeSuccessCount_Field

type Node_Wallet_Field

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

func Node_Wallet

func Node_Wallet(v string) Node_Wallet_Field

type Project

type Project struct {
	Id          []byte
	Name        string
	Description string
	CreatedAt   time.Time
}

type ProjectMember

type ProjectMember struct {
	MemberId  []byte
	ProjectId []byte
	CreatedAt time.Time
}

type ProjectMember_CreatedAt_Field

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

func ProjectMember_CreatedAt

func ProjectMember_CreatedAt(v time.Time) ProjectMember_CreatedAt_Field

type ProjectMember_MemberId_Field

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

func ProjectMember_MemberId

func ProjectMember_MemberId(v []byte) ProjectMember_MemberId_Field

type ProjectMember_ProjectId_Field

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

func ProjectMember_ProjectId

func ProjectMember_ProjectId(v []byte) ProjectMember_ProjectId_Field

type ProjectMember_Update_Fields

type ProjectMember_Update_Fields struct {
}

type Project_CreatedAt_Field

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

func Project_CreatedAt

func Project_CreatedAt(v time.Time) Project_CreatedAt_Field

type Project_Description_Field

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

func Project_Description

func Project_Description(v string) Project_Description_Field

type Project_Id_Field

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

func Project_Id

func Project_Id(v []byte) Project_Id_Field

type Project_Name_Field

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

func Project_Name

func Project_Name(v string) Project_Name_Field

type Project_Update_Fields

type Project_Update_Fields struct {
	Description Project_Description_Field
}

type RegistrationToken

type RegistrationToken struct {
	Secret       []byte
	OwnerId      []byte
	ProjectLimit int
	CreatedAt    time.Time
}

type RegistrationToken_Create_Fields

type RegistrationToken_Create_Fields struct {
	OwnerId RegistrationToken_OwnerId_Field
}

type RegistrationToken_CreatedAt_Field

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

func RegistrationToken_CreatedAt

func RegistrationToken_CreatedAt(v time.Time) RegistrationToken_CreatedAt_Field

type RegistrationToken_OwnerId_Field

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

func RegistrationToken_OwnerId

func RegistrationToken_OwnerId(v []byte) RegistrationToken_OwnerId_Field

func RegistrationToken_OwnerId_Null

func RegistrationToken_OwnerId_Null() RegistrationToken_OwnerId_Field

func RegistrationToken_OwnerId_Raw

func RegistrationToken_OwnerId_Raw(v []byte) RegistrationToken_OwnerId_Field

type RegistrationToken_ProjectLimit_Field

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

func RegistrationToken_ProjectLimit

func RegistrationToken_ProjectLimit(v int) RegistrationToken_ProjectLimit_Field

type RegistrationToken_Secret_Field

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

func RegistrationToken_Secret

func RegistrationToken_Secret(v []byte) RegistrationToken_Secret_Field

type RegistrationToken_Update_Fields

type RegistrationToken_Update_Fields struct {
	OwnerId RegistrationToken_OwnerId_Field
}

type Rx

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

func (*Rx) All_AccountingRaw

func (rx *Rx) All_AccountingRaw(ctx context.Context) (
	rows []*AccountingRaw, err error)

func (*Rx) All_AccountingRaw_By_IntervalEndTime_GreaterOrEqual

func (rx *Rx) All_AccountingRaw_By_IntervalEndTime_GreaterOrEqual(ctx context.Context,
	accounting_raw_interval_end_time_greater_or_equal AccountingRaw_IntervalEndTime_Field) (
	rows []*AccountingRaw, err error)

func (*Rx) All_AccountingRollup_By_StartTime_GreaterOrEqual

func (rx *Rx) All_AccountingRollup_By_StartTime_GreaterOrEqual(ctx context.Context,
	accounting_rollup_start_time_greater_or_equal AccountingRollup_StartTime_Field) (
	rows []*AccountingRollup, err error)

func (*Rx) All_ApiKey_By_ProjectId_OrderBy_Asc_Name

func (rx *Rx) All_ApiKey_By_ProjectId_OrderBy_Asc_Name(ctx context.Context,
	api_key_project_id ApiKey_ProjectId_Field) (
	rows []*ApiKey, err error)

func (*Rx) All_BucketStorageTally_By_ProjectId_And_BucketName_And_IntervalStart_GreaterOrEqual_And_IntervalStart_LessOrEqual_OrderBy_Desc_IntervalStart added in v0.9.0

func (rx *Rx) All_BucketStorageTally_By_ProjectId_And_BucketName_And_IntervalStart_GreaterOrEqual_And_IntervalStart_LessOrEqual_OrderBy_Desc_IntervalStart(ctx context.Context,
	bucket_storage_tally_project_id BucketStorageTally_ProjectId_Field,
	bucket_storage_tally_bucket_name BucketStorageTally_BucketName_Field,
	bucket_storage_tally_interval_start_greater_or_equal BucketStorageTally_IntervalStart_Field,
	bucket_storage_tally_interval_start_less_or_equal BucketStorageTally_IntervalStart_Field) (
	rows []*BucketStorageTally, err error)

func (*Rx) All_Node_Id

func (rx *Rx) All_Node_Id(ctx context.Context) (
	rows []*Id_Row, err error)

func (*Rx) All_Project

func (rx *Rx) All_Project(ctx context.Context) (
	rows []*Project, err error)

func (*Rx) All_ProjectMember_By_MemberId

func (rx *Rx) All_ProjectMember_By_MemberId(ctx context.Context,
	project_member_member_id ProjectMember_MemberId_Field) (
	rows []*ProjectMember, err error)

func (*Rx) All_Project_By_ProjectMember_MemberId_OrderBy_Asc_Project_Name

func (rx *Rx) All_Project_By_ProjectMember_MemberId_OrderBy_Asc_Project_Name(ctx context.Context,
	project_member_member_id ProjectMember_MemberId_Field) (
	rows []*Project, err error)

func (*Rx) All_StoragenodeBandwidthRollup_By_IntervalStart_GreaterOrEqual added in v0.9.0

func (rx *Rx) All_StoragenodeBandwidthRollup_By_IntervalStart_GreaterOrEqual(ctx context.Context,
	storagenode_bandwidth_rollup_interval_start_greater_or_equal StoragenodeBandwidthRollup_IntervalStart_Field) (
	rows []*StoragenodeBandwidthRollup, err error)

func (*Rx) Commit

func (rx *Rx) Commit() (err error)

func (*Rx) Create_AccountingRaw

func (rx *Rx) Create_AccountingRaw(ctx context.Context,
	accounting_raw_node_id AccountingRaw_NodeId_Field,
	accounting_raw_interval_end_time AccountingRaw_IntervalEndTime_Field,
	accounting_raw_data_total AccountingRaw_DataTotal_Field,
	accounting_raw_data_type AccountingRaw_DataType_Field,
	accounting_raw_created_at AccountingRaw_CreatedAt_Field) (
	accounting_raw *AccountingRaw, err error)

func (*Rx) Create_AccountingRollup

func (rx *Rx) Create_AccountingRollup(ctx context.Context,
	accounting_rollup_node_id AccountingRollup_NodeId_Field,
	accounting_rollup_start_time AccountingRollup_StartTime_Field,
	accounting_rollup_put_total AccountingRollup_PutTotal_Field,
	accounting_rollup_get_total AccountingRollup_GetTotal_Field,
	accounting_rollup_get_audit_total AccountingRollup_GetAuditTotal_Field,
	accounting_rollup_get_repair_total AccountingRollup_GetRepairTotal_Field,
	accounting_rollup_put_repair_total AccountingRollup_PutRepairTotal_Field,
	accounting_rollup_at_rest_total AccountingRollup_AtRestTotal_Field) (
	accounting_rollup *AccountingRollup, err error)

func (*Rx) Create_AccountingTimestamps

func (rx *Rx) Create_AccountingTimestamps(ctx context.Context,
	accounting_timestamps_name AccountingTimestamps_Name_Field,
	accounting_timestamps_value AccountingTimestamps_Value_Field) (
	accounting_timestamps *AccountingTimestamps, err error)

func (*Rx) Create_ApiKey

func (rx *Rx) Create_ApiKey(ctx context.Context,
	api_key_id ApiKey_Id_Field,
	api_key_project_id ApiKey_ProjectId_Field,
	api_key_key ApiKey_Key_Field,
	api_key_name ApiKey_Name_Field) (
	api_key *ApiKey, err error)

func (*Rx) Create_BucketStorageTally

func (rx *Rx) Create_BucketStorageTally(ctx context.Context,
	bucket_storage_tally_bucket_name BucketStorageTally_BucketName_Field,
	bucket_storage_tally_project_id BucketStorageTally_ProjectId_Field,
	bucket_storage_tally_interval_start BucketStorageTally_IntervalStart_Field,
	bucket_storage_tally_inline BucketStorageTally_Inline_Field,
	bucket_storage_tally_remote BucketStorageTally_Remote_Field,
	bucket_storage_tally_remote_segments_count BucketStorageTally_RemoteSegmentsCount_Field,
	bucket_storage_tally_inline_segments_count BucketStorageTally_InlineSegmentsCount_Field,
	bucket_storage_tally_object_count BucketStorageTally_ObjectCount_Field,
	bucket_storage_tally_metadata_size BucketStorageTally_MetadataSize_Field) (
	bucket_storage_tally *BucketStorageTally, err error)

func (*Rx) Create_BucketUsage

func (rx *Rx) Create_BucketUsage(ctx context.Context,
	bucket_usage_id BucketUsage_Id_Field,
	bucket_usage_bucket_id BucketUsage_BucketId_Field,
	bucket_usage_rollup_end_time BucketUsage_RollupEndTime_Field,
	bucket_usage_remote_stored_data BucketUsage_RemoteStoredData_Field,
	bucket_usage_inline_stored_data BucketUsage_InlineStoredData_Field,
	bucket_usage_remote_segments BucketUsage_RemoteSegments_Field,
	bucket_usage_inline_segments BucketUsage_InlineSegments_Field,
	bucket_usage_objects BucketUsage_Objects_Field,
	bucket_usage_metadata_size BucketUsage_MetadataSize_Field,
	bucket_usage_repair_egress BucketUsage_RepairEgress_Field,
	bucket_usage_get_egress BucketUsage_GetEgress_Field,
	bucket_usage_audit_egress BucketUsage_AuditEgress_Field) (
	bucket_usage *BucketUsage, err error)

func (*Rx) Create_CertRecord

func (rx *Rx) Create_CertRecord(ctx context.Context,
	certRecord_publickey CertRecord_Publickey_Field,
	certRecord_id CertRecord_Id_Field) (
	certRecord *CertRecord, err error)

func (*Rx) Create_Injuredsegment

func (rx *Rx) Create_Injuredsegment(ctx context.Context,
	injuredsegment_info Injuredsegment_Info_Field) (
	injuredsegment *Injuredsegment, err error)

func (*Rx) Create_Irreparabledb

func (rx *Rx) Create_Irreparabledb(ctx context.Context,
	irreparabledb_segmentpath Irreparabledb_Segmentpath_Field,
	irreparabledb_segmentdetail Irreparabledb_Segmentdetail_Field,
	irreparabledb_pieces_lost_count Irreparabledb_PiecesLostCount_Field,
	irreparabledb_seg_damaged_unix_sec Irreparabledb_SegDamagedUnixSec_Field,
	irreparabledb_repair_attempt_count Irreparabledb_RepairAttemptCount_Field) (
	irreparabledb *Irreparabledb, err error)

func (*Rx) Create_Node

func (rx *Rx) Create_Node(ctx context.Context,
	node_id Node_Id_Field,
	node_address Node_Address_Field,
	node_protocol Node_Protocol_Field,
	node_type Node_Type_Field,
	node_email Node_Email_Field,
	node_wallet Node_Wallet_Field,
	node_free_bandwidth Node_FreeBandwidth_Field,
	node_free_disk Node_FreeDisk_Field,
	node_major Node_Major_Field,
	node_minor Node_Minor_Field,
	node_patch Node_Patch_Field,
	node_hash Node_Hash_Field,
	node_timestamp Node_Timestamp_Field,
	node_release Node_Release_Field,
	node_latency_90 Node_Latency90_Field,
	node_audit_success_count Node_AuditSuccessCount_Field,
	node_total_audit_count Node_TotalAuditCount_Field,
	node_audit_success_ratio Node_AuditSuccessRatio_Field,
	node_uptime_success_count Node_UptimeSuccessCount_Field,
	node_total_uptime_count Node_TotalUptimeCount_Field,
	node_uptime_ratio Node_UptimeRatio_Field,
	node_last_contact_success Node_LastContactSuccess_Field,
	node_last_contact_failure Node_LastContactFailure_Field) (
	node *Node, err error)

func (*Rx) Create_Project

func (rx *Rx) Create_Project(ctx context.Context,
	project_id Project_Id_Field,
	project_name Project_Name_Field,
	project_description Project_Description_Field) (
	project *Project, err error)

func (*Rx) Create_ProjectMember

func (rx *Rx) Create_ProjectMember(ctx context.Context,
	project_member_member_id ProjectMember_MemberId_Field,
	project_member_project_id ProjectMember_ProjectId_Field) (
	project_member *ProjectMember, err error)

func (*Rx) Create_RegistrationToken

func (rx *Rx) Create_RegistrationToken(ctx context.Context,
	registration_token_secret RegistrationToken_Secret_Field,
	registration_token_project_limit RegistrationToken_ProjectLimit_Field,
	optional RegistrationToken_Create_Fields) (
	registration_token *RegistrationToken, err error)

func (*Rx) Create_SerialNumber

func (rx *Rx) Create_SerialNumber(ctx context.Context,
	serial_number_serial_number SerialNumber_SerialNumber_Field,
	serial_number_bucket_id SerialNumber_BucketId_Field,
	serial_number_expires_at SerialNumber_ExpiresAt_Field) (
	serial_number *SerialNumber, err error)

func (*Rx) Create_UsedSerial

func (rx *Rx) Create_UsedSerial(ctx context.Context,
	used_serial_serial_number_id UsedSerial_SerialNumberId_Field,
	used_serial_storage_node_id UsedSerial_StorageNodeId_Field) (
	used_serial *UsedSerial, err error)

func (*Rx) Create_User

func (rx *Rx) Create_User(ctx context.Context,
	user_id User_Id_Field,
	user_full_name User_FullName_Field,
	user_email User_Email_Field,
	user_password_hash User_PasswordHash_Field,
	optional User_Create_Fields) (
	user *User, err error)

func (*Rx) Delete_AccountingRaw_By_Id

func (rx *Rx) Delete_AccountingRaw_By_Id(ctx context.Context,
	accounting_raw_id AccountingRaw_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_AccountingRollup_By_Id

func (rx *Rx) Delete_AccountingRollup_By_Id(ctx context.Context,
	accounting_rollup_id AccountingRollup_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_ApiKey_By_Id

func (rx *Rx) Delete_ApiKey_By_Id(ctx context.Context,
	api_key_id ApiKey_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_BucketUsage_By_Id

func (rx *Rx) Delete_BucketUsage_By_Id(ctx context.Context,
	bucket_usage_id BucketUsage_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_CertRecord_By_Id

func (rx *Rx) Delete_CertRecord_By_Id(ctx context.Context,
	certRecord_id CertRecord_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_Injuredsegment_By_Id

func (rx *Rx) Delete_Injuredsegment_By_Id(ctx context.Context,
	injuredsegment_id Injuredsegment_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_Irreparabledb_By_Segmentpath

func (rx *Rx) Delete_Irreparabledb_By_Segmentpath(ctx context.Context,
	irreparabledb_segmentpath Irreparabledb_Segmentpath_Field) (
	deleted bool, err error)

func (*Rx) Delete_Node_By_Id

func (rx *Rx) Delete_Node_By_Id(ctx context.Context,
	node_id Node_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_ProjectMember_By_MemberId_And_ProjectId

func (rx *Rx) Delete_ProjectMember_By_MemberId_And_ProjectId(ctx context.Context,
	project_member_member_id ProjectMember_MemberId_Field,
	project_member_project_id ProjectMember_ProjectId_Field) (
	deleted bool, err error)

func (*Rx) Delete_Project_By_Id

func (rx *Rx) Delete_Project_By_Id(ctx context.Context,
	project_id Project_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_SerialNumber_By_ExpiresAt_LessOrEqual

func (rx *Rx) Delete_SerialNumber_By_ExpiresAt_LessOrEqual(ctx context.Context,
	serial_number_expires_at_less_or_equal SerialNumber_ExpiresAt_Field) (
	count int64, err error)

func (*Rx) Delete_User_By_Id

func (rx *Rx) Delete_User_By_Id(ctx context.Context,
	user_id User_Id_Field) (
	deleted bool, err error)

func (*Rx) Find_AccountingTimestamps_Value_By_Name

func (rx *Rx) Find_AccountingTimestamps_Value_By_Name(ctx context.Context,
	accounting_timestamps_name AccountingTimestamps_Name_Field) (
	row *Value_Row, err error)

func (*Rx) Find_BucketBandwidthRollup_By_BucketName_And_ProjectId_And_IntervalStart_And_Action

func (rx *Rx) Find_BucketBandwidthRollup_By_BucketName_And_ProjectId_And_IntervalStart_And_Action(ctx context.Context,
	bucket_bandwidth_rollup_bucket_name BucketBandwidthRollup_BucketName_Field,
	bucket_bandwidth_rollup_project_id BucketBandwidthRollup_ProjectId_Field,
	bucket_bandwidth_rollup_interval_start BucketBandwidthRollup_IntervalStart_Field,
	bucket_bandwidth_rollup_action BucketBandwidthRollup_Action_Field) (
	bucket_bandwidth_rollup *BucketBandwidthRollup, err error)

func (*Rx) Find_SerialNumber_By_SerialNumber

func (rx *Rx) Find_SerialNumber_By_SerialNumber(ctx context.Context,
	serial_number_serial_number SerialNumber_SerialNumber_Field) (
	serial_number *SerialNumber, err error)

func (*Rx) Find_StoragenodeBandwidthRollup_By_StoragenodeId_And_IntervalStart_And_Action

func (rx *Rx) Find_StoragenodeBandwidthRollup_By_StoragenodeId_And_IntervalStart_And_Action(ctx context.Context,
	storagenode_bandwidth_rollup_storagenode_id StoragenodeBandwidthRollup_StoragenodeId_Field,
	storagenode_bandwidth_rollup_interval_start StoragenodeBandwidthRollup_IntervalStart_Field,
	storagenode_bandwidth_rollup_action StoragenodeBandwidthRollup_Action_Field) (
	storagenode_bandwidth_rollup *StoragenodeBandwidthRollup, err error)

func (*Rx) First_BucketStorageTally_By_ProjectId_OrderBy_Desc_IntervalStart

func (rx *Rx) First_BucketStorageTally_By_ProjectId_OrderBy_Desc_IntervalStart(ctx context.Context,
	bucket_storage_tally_project_id BucketStorageTally_ProjectId_Field) (
	bucket_storage_tally *BucketStorageTally, err error)

func (*Rx) First_Injuredsegment

func (rx *Rx) First_Injuredsegment(ctx context.Context) (
	injuredsegment *Injuredsegment, err error)

func (*Rx) Get_AccountingRaw_By_Id

func (rx *Rx) Get_AccountingRaw_By_Id(ctx context.Context,
	accounting_raw_id AccountingRaw_Id_Field) (
	accounting_raw *AccountingRaw, err error)

func (*Rx) Get_AccountingRollup_By_Id

func (rx *Rx) Get_AccountingRollup_By_Id(ctx context.Context,
	accounting_rollup_id AccountingRollup_Id_Field) (
	accounting_rollup *AccountingRollup, err error)

func (*Rx) Get_ApiKey_By_Id

func (rx *Rx) Get_ApiKey_By_Id(ctx context.Context,
	api_key_id ApiKey_Id_Field) (
	api_key *ApiKey, err error)

func (*Rx) Get_ApiKey_By_Key

func (rx *Rx) Get_ApiKey_By_Key(ctx context.Context,
	api_key_key ApiKey_Key_Field) (
	api_key *ApiKey, err error)

func (*Rx) Get_BucketUsage_By_Id

func (rx *Rx) Get_BucketUsage_By_Id(ctx context.Context,
	bucket_usage_id BucketUsage_Id_Field) (
	bucket_usage *BucketUsage, err error)

func (*Rx) Get_CertRecord_By_Id

func (rx *Rx) Get_CertRecord_By_Id(ctx context.Context,
	certRecord_id CertRecord_Id_Field) (
	certRecord *CertRecord, err error)

func (*Rx) Get_Irreparabledb_By_Segmentpath

func (rx *Rx) Get_Irreparabledb_By_Segmentpath(ctx context.Context,
	irreparabledb_segmentpath Irreparabledb_Segmentpath_Field) (
	irreparabledb *Irreparabledb, err error)

func (*Rx) Get_Node_By_Id

func (rx *Rx) Get_Node_By_Id(ctx context.Context,
	node_id Node_Id_Field) (
	node *Node, err error)

func (*Rx) Get_Project_By_Id

func (rx *Rx) Get_Project_By_Id(ctx context.Context,
	project_id Project_Id_Field) (
	project *Project, err error)

func (*Rx) Get_RegistrationToken_By_OwnerId

func (rx *Rx) Get_RegistrationToken_By_OwnerId(ctx context.Context,
	registration_token_owner_id RegistrationToken_OwnerId_Field) (
	registration_token *RegistrationToken, err error)

func (*Rx) Get_RegistrationToken_By_Secret

func (rx *Rx) Get_RegistrationToken_By_Secret(ctx context.Context,
	registration_token_secret RegistrationToken_Secret_Field) (
	registration_token *RegistrationToken, err error)

func (*Rx) Get_User_By_Email_And_Status_Not_Number

func (rx *Rx) Get_User_By_Email_And_Status_Not_Number(ctx context.Context,
	user_email User_Email_Field) (
	user *User, err error)

func (*Rx) Get_User_By_Id

func (rx *Rx) Get_User_By_Id(ctx context.Context,
	user_id User_Id_Field) (
	user *User, err error)

func (*Rx) Limited_BucketUsage_By_BucketId_And_RollupEndTime_Greater_And_RollupEndTime_LessOrEqual_OrderBy_Asc_RollupEndTime

func (rx *Rx) Limited_BucketUsage_By_BucketId_And_RollupEndTime_Greater_And_RollupEndTime_LessOrEqual_OrderBy_Asc_RollupEndTime(ctx context.Context,
	bucket_usage_bucket_id BucketUsage_BucketId_Field,
	bucket_usage_rollup_end_time_greater BucketUsage_RollupEndTime_Field,
	bucket_usage_rollup_end_time_less_or_equal BucketUsage_RollupEndTime_Field,
	limit int, offset int64) (
	rows []*BucketUsage, err error)

func (*Rx) Limited_BucketUsage_By_BucketId_And_RollupEndTime_Greater_And_RollupEndTime_LessOrEqual_OrderBy_Desc_RollupEndTime

func (rx *Rx) Limited_BucketUsage_By_BucketId_And_RollupEndTime_Greater_And_RollupEndTime_LessOrEqual_OrderBy_Desc_RollupEndTime(ctx context.Context,
	bucket_usage_bucket_id BucketUsage_BucketId_Field,
	bucket_usage_rollup_end_time_greater BucketUsage_RollupEndTime_Field,
	bucket_usage_rollup_end_time_less_or_equal BucketUsage_RollupEndTime_Field,
	limit int, offset int64) (
	rows []*BucketUsage, err error)

func (*Rx) Limited_Injuredsegment

func (rx *Rx) Limited_Injuredsegment(ctx context.Context,
	limit int, offset int64) (
	rows []*Injuredsegment, err error)

func (*Rx) Limited_Irreparabledb_OrderBy_Asc_Segmentpath

func (rx *Rx) Limited_Irreparabledb_OrderBy_Asc_Segmentpath(ctx context.Context,
	limit int, offset int64) (
	rows []*Irreparabledb, err error)

func (*Rx) Limited_Node_By_Id_GreaterOrEqual_OrderBy_Asc_Id

func (rx *Rx) Limited_Node_By_Id_GreaterOrEqual_OrderBy_Asc_Id(ctx context.Context,
	node_id_greater_or_equal Node_Id_Field,
	limit int, offset int64) (
	rows []*Node, err error)

func (*Rx) Limited_ProjectMember_By_ProjectId

func (rx *Rx) Limited_ProjectMember_By_ProjectId(ctx context.Context,
	project_member_project_id ProjectMember_ProjectId_Field,
	limit int, offset int64) (
	rows []*ProjectMember, err error)

func (*Rx) Rebind

func (rx *Rx) Rebind(s string) string

func (*Rx) Rollback

func (rx *Rx) Rollback() (err error)

func (*Rx) UnsafeTx

func (rx *Rx) UnsafeTx(ctx context.Context) (unsafe_tx *sql.Tx, err error)

func (*Rx) Update_AccountingTimestamps_By_Name

func (rx *Rx) Update_AccountingTimestamps_By_Name(ctx context.Context,
	accounting_timestamps_name AccountingTimestamps_Name_Field,
	update AccountingTimestamps_Update_Fields) (
	accounting_timestamps *AccountingTimestamps, err error)

func (*Rx) Update_ApiKey_By_Id

func (rx *Rx) Update_ApiKey_By_Id(ctx context.Context,
	api_key_id ApiKey_Id_Field,
	update ApiKey_Update_Fields) (
	api_key *ApiKey, err error)

func (*Rx) Update_CertRecord_By_Id

func (rx *Rx) Update_CertRecord_By_Id(ctx context.Context,
	certRecord_id CertRecord_Id_Field,
	update CertRecord_Update_Fields) (
	certRecord *CertRecord, err error)

func (*Rx) Update_Irreparabledb_By_Segmentpath

func (rx *Rx) Update_Irreparabledb_By_Segmentpath(ctx context.Context,
	irreparabledb_segmentpath Irreparabledb_Segmentpath_Field,
	update Irreparabledb_Update_Fields) (
	irreparabledb *Irreparabledb, err error)

func (*Rx) Update_Node_By_Id

func (rx *Rx) Update_Node_By_Id(ctx context.Context,
	node_id Node_Id_Field,
	update Node_Update_Fields) (
	node *Node, err error)

func (*Rx) Update_Project_By_Id

func (rx *Rx) Update_Project_By_Id(ctx context.Context,
	project_id Project_Id_Field,
	update Project_Update_Fields) (
	project *Project, err error)

func (*Rx) Update_RegistrationToken_By_Secret

func (rx *Rx) Update_RegistrationToken_By_Secret(ctx context.Context,
	registration_token_secret RegistrationToken_Secret_Field,
	update RegistrationToken_Update_Fields) (
	registration_token *RegistrationToken, err error)

func (*Rx) Update_User_By_Id

func (rx *Rx) Update_User_By_Id(ctx context.Context,
	user_id User_Id_Field,
	update User_Update_Fields) (
	user *User, err error)

type SerialNumber

type SerialNumber struct {
	Id           int
	SerialNumber []byte
	BucketId     []byte
	ExpiresAt    time.Time
}

type SerialNumber_BucketId_Field

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

func SerialNumber_BucketId

func SerialNumber_BucketId(v []byte) SerialNumber_BucketId_Field

type SerialNumber_ExpiresAt_Field

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

func SerialNumber_ExpiresAt

func SerialNumber_ExpiresAt(v time.Time) SerialNumber_ExpiresAt_Field

type SerialNumber_Id_Field

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

func SerialNumber_Id

func SerialNumber_Id(v int) SerialNumber_Id_Field

type SerialNumber_SerialNumber_Field

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

func SerialNumber_SerialNumber

func SerialNumber_SerialNumber(v []byte) SerialNumber_SerialNumber_Field

type SerialNumber_Update_Fields

type SerialNumber_Update_Fields struct {
}

type StoragenodeBandwidthRollup

type StoragenodeBandwidthRollup struct {
	StoragenodeId   []byte
	IntervalStart   time.Time
	IntervalSeconds uint
	Action          uint
	Allocated       uint64
	Settled         uint64
}

type StoragenodeBandwidthRollup_Action_Field

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

func StoragenodeBandwidthRollup_Action

func StoragenodeBandwidthRollup_Action(v uint) StoragenodeBandwidthRollup_Action_Field

type StoragenodeBandwidthRollup_Allocated_Field

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

type StoragenodeBandwidthRollup_IntervalSeconds_Field

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

type StoragenodeBandwidthRollup_IntervalStart_Field

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

type StoragenodeBandwidthRollup_Settled_Field

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

type StoragenodeBandwidthRollup_StoragenodeId_Field

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

type StoragenodeBandwidthRollup_Update_Fields

type StoragenodeBandwidthRollup_Update_Fields struct {
	Allocated StoragenodeBandwidthRollup_Allocated_Field
	Settled   StoragenodeBandwidthRollup_Settled_Field
}

type StoragenodeStorageTally

type StoragenodeStorageTally struct {
	StoragenodeId []byte
	IntervalStart time.Time
	Total         uint64
}

type StoragenodeStorageTally_IntervalStart_Field

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

type StoragenodeStorageTally_StoragenodeId_Field

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

func StoragenodeStorageTally_StoragenodeId

func StoragenodeStorageTally_StoragenodeId(v []byte) StoragenodeStorageTally_StoragenodeId_Field

type StoragenodeStorageTally_Total_Field

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

func StoragenodeStorageTally_Total

func StoragenodeStorageTally_Total(v uint64) StoragenodeStorageTally_Total_Field

type StoragenodeStorageTally_Update_Fields

type StoragenodeStorageTally_Update_Fields struct {
}

type Tx

type Tx struct {
	Tx *sql.Tx
	// contains filtered or unexported fields
}

type TxMethods

type TxMethods interface {
	Methods

	Rebind(s string) string
	Commit() error
	Rollback() error
}

type UsedSerial

type UsedSerial struct {
	SerialNumberId int
	StorageNodeId  []byte
}

type UsedSerial_SerialNumberId_Field

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

func UsedSerial_SerialNumberId

func UsedSerial_SerialNumberId(v int) UsedSerial_SerialNumberId_Field

type UsedSerial_StorageNodeId_Field

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

func UsedSerial_StorageNodeId

func UsedSerial_StorageNodeId(v []byte) UsedSerial_StorageNodeId_Field

type UsedSerial_Update_Fields

type UsedSerial_Update_Fields struct {
}

type User

type User struct {
	Id           []byte
	FullName     string
	ShortName    *string
	Email        string
	PasswordHash []byte
	Status       int
	CreatedAt    time.Time
}

type User_Create_Fields

type User_Create_Fields struct {
	ShortName User_ShortName_Field
}

type User_CreatedAt_Field

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

func User_CreatedAt

func User_CreatedAt(v time.Time) User_CreatedAt_Field

type User_Email_Field

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

func User_Email

func User_Email(v string) User_Email_Field

type User_FullName_Field

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

func User_FullName

func User_FullName(v string) User_FullName_Field

type User_Id_Field

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

func User_Id

func User_Id(v []byte) User_Id_Field

type User_PasswordHash_Field

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

func User_PasswordHash

func User_PasswordHash(v []byte) User_PasswordHash_Field

type User_ShortName_Field

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

func User_ShortName

func User_ShortName(v string) User_ShortName_Field

func User_ShortName_Null

func User_ShortName_Null() User_ShortName_Field

func User_ShortName_Raw

func User_ShortName_Raw(v *string) User_ShortName_Field

type User_Status_Field

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

func User_Status

func User_Status(v int) User_Status_Field

type User_Update_Fields

type User_Update_Fields struct {
	FullName     User_FullName_Field
	ShortName    User_ShortName_Field
	Email        User_Email_Field
	PasswordHash User_PasswordHash_Field
	Status       User_Status_Field
}

type Value_Row

type Value_Row struct {
	Value time.Time
}

Jump to

Keyboard shortcuts

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