server

package
v0.0.0-...-35e449e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var REQUIRED_ARTIFACT_FIELDS = []string{"type_id", "uri"}
View Source
var REQUIRED_TYPE_FIELDS = []string{"name"}

Functions

func Begin

func Begin(ctx context.Context, db *gorm.DB) (newCtx context.Context, dbConn *gorm.DB)

func Commit

func Commit(ctx context.Context) error

func FromContext

func FromContext(ctx context.Context) (*gorm.DB, bool)

FromContext returns the gorm.DB value stored in ctx, if any.

func NewContext

func NewContext(ctx context.Context, db *gorm.DB) context.Context

NewContext returns a new Context that carries value txContext.

func NewGrpcServer

func NewGrpcServer(dbConnection *gorm.DB) proto.MetadataStoreServiceServer

func Rollback

func Rollback(ctx context.Context) error

Types

type TypeKind

type TypeKind int32
const (
	EXECUTION_TYPE TypeKind = iota
	ARTIFACT_TYPE
	CONTEXT_TYPE
)

artifact type values from ml-metadata table values

func (TypeKind) String

func (tk TypeKind) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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