domain

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileScan

type FileScan struct {
	Id               int64
	LFS              bool
	Text             bool
	Dir              string
	File             string
	Hash             string
	Owner            domain.Account
	RepoId           int64
	ModerationStatus primitive.FileModerationStatus
	ModerationResult primitive.FileModerationResult
	RepoName         string
	Size             int64
	Name             string
	SensitiveItem    string
}

func NewFileScan

func NewFileScan() FileScan

func (*FileScan) HandleScanDone

func (l *FileScan) HandleScanDone(m primitive.FileModerationResult)

HandleScanDone handles the scan done.

type FileScanIndex

type FileScanIndex struct {
	Owner    domain.Account
	RepoName domain.Account
}

type FilescanRes

type FilescanRes struct {
	ModerationStatus string
	ModerationResult string
	Name             string
}

type LargeFileScan

type LargeFileScan struct {
	Id               int64
	Hash             string
	Name             string
	ModerationStatus string
	ModerationResult string
}

type ModerationEvent

type ModerationEvent struct {
	ID       int64  `json:"id"`
	Owner    string `json:"owner"`
	RepoId   int64  `json:"repo_id"`
	RepoName string `json:"repo_name"`
	Dir      string `json:"dir"`
	File     string `json:"file"`
}

type ModerationEventPublisher

type ModerationEventPublisher interface {
	Publish(ModerationEvent) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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