Documentation ¶
Index ¶
- Variables
- type MysqlOrgRepository
- func (r *MysqlOrgRepository) CreateKeyResult(ctx context.Context, keyResult *pb.KeyResult) (int64, error)
- func (r *MysqlOrgRepository) CreateObjective(ctx context.Context, objective *pb.Objective) (int64, error)
- func (r *MysqlOrgRepository) DeleteKeyResult(ctx context.Context, id int64) error
- func (r *MysqlOrgRepository) DeleteObjective(ctx context.Context, id int64) error
- func (r *MysqlOrgRepository) GetKeyResultByID(ctx context.Context, id int64) (*pb.KeyResult, error)
- func (r *MysqlOrgRepository) GetObjectiveByID(ctx context.Context, id int64) (*pb.Objective, error)
- func (r *MysqlOrgRepository) ListKeyResults(ctx context.Context) ([]*pb.KeyResult, error)
- func (r *MysqlOrgRepository) ListObjectives(ctx context.Context) ([]*pb.Objective, error)
- type OrgRepository
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewMysqlOrgRepository)
Functions ¶
This section is empty.
Types ¶
type MysqlOrgRepository ¶
type MysqlOrgRepository struct {
// contains filtered or unexported fields
}
func (*MysqlOrgRepository) CreateKeyResult ¶
func (*MysqlOrgRepository) CreateObjective ¶
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 (*MysqlOrgRepository) GetObjectiveByID ¶
func (*MysqlOrgRepository) ListKeyResults ¶
func (*MysqlOrgRepository) ListObjectives ¶
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
Click to show internal directories.
Click to hide internal directories.