flaw

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpController

func NewHttpController(flawRepository repository) *flawHttpController

func NewService added in v0.3.0

func NewService(flawRepository flawRepository, flawEventRepository flawEventRepository) *service

Types

type FlawEventDTO

type FlawEventDTO struct {
	Type   models.FlawEventType `json:"type"`
	FlawID string               `json:"flawId"`
	UserID string               `json:"userId"`

	Payload interface{} `json:"payload"`
}

func (FlawEventDTO) ToModel

func (dto FlawEventDTO) ToModel() models.FlawEvent

type FlawEventHttpController

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

func NewEventHttpController

func NewEventHttpController(flawEventRepository ctrFlawEventRepository) *FlawEventHttpController

func (FlawEventHttpController) Create

func (c FlawEventHttpController) Create(ctx core.Context) error

Jump to

Keyboard shortcuts

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