operation

package
v0.0.0-...-8b1a3a3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const OperationTableName = "Operation"

OperationTableName is Operation Table Name

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	OperationID   string
	OperationName string
	ElapsedTimeMS int64
	Note          spanner.NullJSON
	CommitedAt    time.Time
}

Operation is Spanner Operation

type OperationAlloy

type OperationAlloy struct {
	OperationID   string
	OperationName string
	ElapsedTimeMS int64
	Note          string
	CommitedAt    time.Time
}

type Store

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

func NewStore

func NewStore(ctx context.Context, sc *spanner.Client) (*Store, error)

func (*Store) Insert

func (s *Store) Insert(ctx context.Context, value *Operation) (ope *Operation, err error)

type StoreAlloy

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

func NewStoreAlloy

func NewStoreAlloy(pool *pgxpool.Pool) *StoreAlloy

func (*StoreAlloy) Insert

func (s *StoreAlloy) Insert(ctx context.Context, value *OperationAlloy) (ope *OperationAlloy, err error)

func (*StoreAlloy) OperationTable

func (s *StoreAlloy) OperationTable() string

Jump to

Keyboard shortcuts

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