stream

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interactor

type Interactor interface {
	SubscribeEvent(fn func(e *ent.Event)) error
	UnsubscribeEvent(fn func(e *ent.Event)) error
	FindDeploymentByID(ctx context.Context, id int) (*ent.Deployment, error)
	FindDeploymentStatusByID(ctx context.Context, id int) (*ent.DeploymentStatus, error)
	FindReviewByID(ctx context.Context, id int) (*ent.Review, error)
	FindPermOfRepo(ctx context.Context, r *ent.Repo, u *ent.User) (*ent.Perm, error)
}

type Stream

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

func NewStream

func NewStream(i Interactor) *Stream

func (*Stream) GetEvents

func (s *Stream) GetEvents(c *gin.Context)

GetEvents streams events of deployment, or review.

Jump to

Keyboard shortcuts

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