repository

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type MysqlOrgRepository

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

func (*MysqlOrgRepository) CreateKeyResult

func (r *MysqlOrgRepository) CreateKeyResult(ctx context.Context, keyResult *pb.KeyResult) (int64, error)

func (*MysqlOrgRepository) CreateObjective

func (r *MysqlOrgRepository) CreateObjective(ctx context.Context, objective *pb.Objective) (int64, error)

func (*MysqlOrgRepository) DeleteKeyResult

func (r *MysqlOrgRepository) DeleteKeyResult(ctx context.Context, id int64) error

func (*MysqlOrgRepository) DeleteObjective

func (r *MysqlOrgRepository) DeleteObjective(ctx context.Context, id int64) error

func (*MysqlOrgRepository) GetKeyResultByID

func (r *MysqlOrgRepository) GetKeyResultByID(ctx context.Context, id int64) (*pb.KeyResult, error)

func (*MysqlOrgRepository) GetObjectiveByID

func (r *MysqlOrgRepository) GetObjectiveByID(ctx context.Context, id int64) (*pb.Objective, error)

func (*MysqlOrgRepository) ListKeyResults

func (r *MysqlOrgRepository) ListKeyResults(ctx context.Context) ([]*pb.KeyResult, error)

func (*MysqlOrgRepository) ListObjectives

func (r *MysqlOrgRepository) ListObjectives(ctx context.Context) ([]*pb.Objective, error)

type OrgRepository

type OrgRepository interface {
	GetObjectiveByID(ctx context.Context, id int64) (*pb.Objective, error)
	ListObjectives(ctx context.Context) ([]*pb.Objective, error)
	CreateObjective(ctx context.Context, objective *pb.Objective) (int64, error)
	DeleteObjective(ctx context.Context, id int64) error
	GetKeyResultByID(ctx context.Context, id int64) (*pb.KeyResult, error)
	ListKeyResults(ctx context.Context) ([]*pb.KeyResult, error)
	CreateKeyResult(ctx context.Context, keyResult *pb.KeyResult) (int64, error)
	DeleteKeyResult(ctx context.Context, id int64) error
}

func CreateOrgRepository

func CreateOrgRepository(id string) (OrgRepository, error)

func NewMysqlOrgRepository

func NewMysqlOrgRepository(id *global.ID, db *mysql.Conn) OrgRepository

Jump to

Keyboard shortcuts

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