sync

package
v0.0.0-...-846c8a6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 17 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 the root path of the request
	Endpoint *url.URL
	// contains filtered or unexported fields
}

Synchronize the sync calling the sync service

func NewSynchronize

func NewSynchronize(syncSrvAddr, ak, sk, reg string, gc giteeCli, synchronizer string) (Synchronize, error)

func (*Synchronize) HandleSyncIssueComment

func (sc *Synchronize) HandleSyncIssueComment(org, repo string, e *sdk.NoteEvent, 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 *sdk.IssueHook, cfg *config.BotConfig) error

func (*Synchronize) HandleSyncIssueToGitHub

func (sc *Synchronize) HandleSyncIssueToGitHub(org, repo string, e *sdk.IssueHook, 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