service

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidStatus = fmt.Errorf("invalid status")

Functions

func Module

func Module(c *di.Container)

Types

type Service

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

func New

func New(
	logger *zap.Logger,
	repo *db_statuses.Repository,
	eventsSender events.EventSender,
) *Service

func (*Service) Get

func (s *Service) Get(ctx context.Context, id string) (*statuses.Status, error)

func (*Service) List

func (s *Service) List(ctx context.Context, codebaseID, commitID string) ([]*statuses.Status, error)

func (*Service) Set

func (s *Service) Set(ctx context.Context, status *statuses.Status) error

Jump to

Keyboard shortcuts

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