service

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: AGPL-3.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerService

type CustomerService interface {
	Create(m *pb_customer.Customer) error
	Update(m *pb_customer.Customer) error
	Delete(u string) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_customer.Customer, error)
	Get(filter interface{}) (*pb_customer.Customer, error)
	IsExist(u string) error
}

CustomerService interface

func NewCustomerService

func NewCustomerService(pluginDatabaseMongoDB *plugin_database_mongodb.Plugin) CustomerService

NewCustomerService init

type Service

type Service struct {
	ServiceName string `mapstructure:"service_name"`
	Customer    struct {
		RPC pb_customer.CustomerService

		Create   opts `mapstructure:"create"`
		Update   opts `mapstructure:"update"`
		Delete   opts `mapstructure:"delete"`
		Paginate opts `mapstructure:"paginate"`
		Get      opts `mapstructure:"get"`
	} `mapstructure:"customer"`
}

Jump to

Keyboard shortcuts

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