adding

package
v0.0.0-...-640762d Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	FindTicket(context.Context, string, string) (string, *Ticket, error)
	CreateTicket(context.Context, *Ticket) (string, error)
}

type Service

type Service interface {
	CreateTicket(context.Context, *Ticket) (string, error)
}

func NewService

func NewService(r Repository, logger log.Logger) Service

type Ticket

type Ticket struct {
	Subject       string    `json:"subject"`
	RequesterName string    `json:"requester_name"`
	Description   string    `json:"description"`
	CreateDate    time.Time `json:"create_date"`
}

Jump to

Keyboard shortcuts

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