Versions in this module Expand all Collapse all v0 v0.0.3 Jun 13, 2017 v0.0.2 Jun 13, 2017 Changes in this version + const BranchKey + const FileNameKey + const LineNumberKey + const RepositoryKey + type Codebase struct + ID uuid.UUID + LastUsedWorkspace string + SpaceID uuid.UUID + StackID string + Type string + URL string + type Content struct + Branch string + FileName string + LineNumber int + Repository string + func NewCodebaseContent(value map[string]interface{}) (Content, error) + func NewCodebaseContentFromValue(value interface{}) (*Content, error) + func (c *Content) IsValid() error + func (c *Content) ToMap() map[string]interface{} + type GormCodebaseRepository struct + func (m *GormCodebaseRepository) Create(ctx context.Context, codebase *Codebase) error + func (m *GormCodebaseRepository) List(ctx context.Context, spaceID uuid.UUID, start *int, limit *int) ([]*Codebase, uint64, error) + func (m *GormCodebaseRepository) Load(ctx context.Context, id uuid.UUID) (*Codebase, error) + func (m *GormCodebaseRepository) Save(ctx context.Context, codebase *Codebase) (*Codebase, error) + func (m *GormCodebaseRepository) TableName() string + type Repository interface + Create func(ctx context.Context, u *Codebase) error + List func(ctx context.Context, spaceID uuid.UUID, start *int, limit *int) ([]*Codebase, uint64, error) + Load func(ctx context.Context, id uuid.UUID) (*Codebase, error) + Save func(ctx context.Context, codebase *Codebase) (*Codebase, error) + func NewCodebaseRepository(db *gorm.DB) Repository