cats

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateService

func CreateService(nc *nats.Conn, s Service, opts *Options) (micro.Service, error)

Types

type CatIntake

type CatIntake struct {
	Name       string
	BirthYear  int
	BirthMonth int
}

type Options

type Options struct {
	micro.Config
	Name    string
	Version string
}

type Service

type Service interface {
	NewCat(r micro.Request, cat CatIntake)
	EditCat(r micro.Request, catID string, cat CatIntake)
	GetCat(r micro.Request, catID string)
}

type ServiceWrapper

type ServiceWrapper struct {
	Handler Service
}

func (*ServiceWrapper) EditCat

func (s *ServiceWrapper) EditCat(r micro.Request)

func (*ServiceWrapper) GetCat

func (s *ServiceWrapper) GetCat(r micro.Request)

func (*ServiceWrapper) NewCat

func (s *ServiceWrapper) NewCat(r micro.Request)

Jump to

Keyboard shortcuts

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