service

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContactService

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

func NewContactService

func NewContactService(
	persistentDbSvc *db.PersistentDatabaseService,
) *ContactService

func (*ContactService) Create

func (service *ContactService) Create(input map[string]interface{}) ServiceOutput

func (*ContactService) Delete

func (service *ContactService) Delete(input map[string]interface{}) ServiceOutput

func (*ContactService) Read

func (service *ContactService) Read() ServiceOutput

func (*ContactService) Update

func (service *ContactService) Update(input map[string]interface{}) ServiceOutput

type ServiceOutput

type ServiceOutput struct {
	Status StatusEnum  `json:"status"`
	Body   interface{} `json:"body"`
}

func NewServiceOutput

func NewServiceOutput(status StatusEnum, body interface{}) ServiceOutput

type StatusEnum

type StatusEnum string
const (
	Success      StatusEnum = "success"
	Created      StatusEnum = "created"
	MultiStatus  StatusEnum = "multiStatus"
	UserError    StatusEnum = "userError"
	Unauthorized StatusEnum = "unauthorized"
	InfraError   StatusEnum = "infraError"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳