services

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

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

func NewGithub

func NewGithub(owner, token string) (g *Github, err error)

func (*Github) CreateIssue added in v0.3.0

func (g *Github) CreateIssue(ctx context.Context, repo, title, content string) (issueURL string, err error)

func (*Github) CreateWeeklyReportIssue added in v0.2.0

func (g *Github) CreateWeeklyReportIssue(ctx context.Context, repo, content string) (issueURL string, err error)

func (*Github) GenerateReportDataByRepo added in v0.3.0

func (g *Github) GenerateReportDataByRepo(ctx context.Context, org, repo string) (
	content string, users map[string]bool, stat model.Statistic, err error)

func (*Github) ListRepos

func (g *Github) ListRepos(ctx context.Context) ([]string, error)

func (*Github) SyncActions added in v0.4.0

func (g *Github) SyncActions(ctx context.Context, actionPath string, repos model.Repos) (err error)

func (*Github) SyncContributors added in v0.3.2

func (g *Github) SyncContributors(ctx context.Context, teams model.Teams, repos []string) (err error)

func (*Github) SyncTeam

func (g *Github) SyncTeam(ctx context.Context, teams model.Teams, repos model.Repos) (err error)

type Matrix

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

func NewMatrix

func NewMatrix(homeserverURL, homeserver, userId, token string) (m *Matrix, err error)

func (*Matrix) CreateRoom

func (m *Matrix) CreateRoom(name string) (roomid string, err error)

func (*Matrix) GetRoom

func (m *Matrix) GetRoom(name string) (roomid string, err error)

func (*Matrix) PublicRoom

func (m *Matrix) PublicRoom(roomid string) (err error)

Jump to

Keyboard shortcuts

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