sync

package
v0.0.0-...-c75d569 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Synchronize

type Synchronize struct {
	utils.HttpClient

	Endpoint *url.URL
	// contains filtered or unexported fields
}

Synchronize the sync calling the sync service

func NewSynchronize

func NewSynchronize(syncSrvAddr string, gc *github.Client, synchronizer string) (Synchronize, error)

func (*Synchronize) HandleSyncIssueComment

func (sc *Synchronize) HandleSyncIssueComment(org, repo string, e *github.IssueCommentEvent, cfg *config.BotConfig) error

HandleSyncIssueComment synchronize the comments of the gitee platform Issue to the Github platform

func (*Synchronize) HandleSyncIssueStatus

func (sc *Synchronize) HandleSyncIssueStatus(org, repo string, issue *github.Issue, cfg *config.BotConfig) error

func (*Synchronize) HandleSyncIssueToGitee

func (sc *Synchronize) HandleSyncIssueToGitee(org, repo string, e *github.Issue, cfg *config.BotConfig) error

HandleSyncIssueToGitHub synchronize the Issue of the gitee platform to the Github platform

Jump to

Keyboard shortcuts

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