adding

package
v0.0.0-...-2ce5aaf Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 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 Customer

type Customer struct {
	Name string `json:"name"`
}

Customer ...

type DataAccessor

type DataAccessor interface {
	CreateCustomer(ctx context.Context, c Customer) (uint, error)
}

DataAccessor provides an abstraction of the actual data provider. Typically this is implemented by some storage.

type Service

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

Service interface for getting the requested data.

func NewService

func NewService(d DataAccessor, api *gin.RouterGroup) Service

NewService creates a listing service

func (*Service) NewCustomers

func (s *Service) NewCustomers(c *gin.Context)

NewCustomers creates a new client

Jump to

Keyboard shortcuts

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