Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func Begin(ctx context.Context, db *gorm.DB) (newCtx context.Context, dbConn *gorm.DB)
 - func Commit(ctx context.Context) error
 - func FromContext(ctx context.Context) (*gorm.DB, bool)
 - func NewContext(ctx context.Context, db *gorm.DB) context.Context
 - func NewGrpcServer(dbConnection *gorm.DB) proto.MetadataStoreServiceServer
 - func Rollback(ctx context.Context) error
 - type TypeKind
 
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 FromContext ¶
FromContext returns the gorm.DB value stored in ctx, if any.
func NewContext ¶
NewContext returns a new Context that carries value txContext.
func NewGrpcServer ¶
func NewGrpcServer(dbConnection *gorm.DB) proto.MetadataStoreServiceServer
Types ¶
 Click to show internal directories. 
   Click to hide internal directories.