showaudit

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditResponse

type AuditResponse struct {
	ID   uint      `json:"audit_id"` //
	Date time.Time `json:"date"`     //
}

type Inport

type Inport interface {
	Execute(ctx context.Context, req InportRequest) (*InportResponse, error)
}

Inport of ShowAudit

func NewUsecase

func NewUsecase(outputPort Outport) Inport

NewUsecase is constructor for create default implementation of usecase ShowAudit

type InportRequest

type InportRequest struct {
}

InportRequest is request payload to run the usecase ShowAudit

type InportResponse

type InportResponse struct {
	Audits []AuditResponse `json:"audits"` //
}

InportResponse is response payload after running the usecase ShowAudit

type Outport

Outport of ShowAudit

Jump to

Keyboard shortcuts

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