Documentation ¶
Index ¶
- func NewDB(dataSourceName string) (*sql.DB, error)
- type ServicesRepository
- func (r *ServicesRepository) CreateService(ctx context.Context, parent string, service *runpb.Service) error
- func (r *ServicesRepository) CreateServices(ctx context.Context, services []*runpb.Service) error
- func (r *ServicesRepository) ListServices(ctx context.Context, parent string, limit int32) ([]*runpb.Service, error)
- func (r *ServicesRepository) ListServicesByParentCreatedAtName(ctx context.Context, parent string, createdAt, name string, limit int32) ([]*runpb.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServicesRepository ¶
type ServicesRepository struct {
// contains filtered or unexported fields
}
func NewServicesRepository ¶
func NewServicesRepository(db *sql.DB) *ServicesRepository
func (*ServicesRepository) CreateService ¶
func (*ServicesRepository) CreateServices ¶ added in v0.0.2
func (*ServicesRepository) ListServices ¶
func (r *ServicesRepository) ListServices(ctx context.Context, parent string, limit int32) ([]*runpb.Service, error)
TODO: annotation
Click to show internal directories.
Click to hide internal directories.