impl

package
v0.0.0-...-822ec7e Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderService

type OrderService struct {
	Session *gocql.Session
	// contains filtered or unexported fields
}

OrderService is a Cassandra backed implementation of OrderService spec

func NewService

func NewService() *OrderService

NewService creates a new OrderService

func (OrderService) Create

func (s OrderService) Create(order *spec.Order) (*spec.Order, error)

Create new order

func (OrderService) Delete

func (s OrderService) Delete(id string) error

Delete an order

func (OrderService) Find

func (s OrderService) Find(query string) ([]spec.Order, error)

Find all orders

func (OrderService) Get

func (s OrderService) Get(id string) (*spec.Order, error)

Get fetches order by ID

func (OrderService) HealthCheck

func (s OrderService) HealthCheck() bool

HealthCheck the service, by checking Cassandra system table

Jump to

Keyboard shortcuts

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