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"` }
Click to show internal directories.
Click to hide internal directories.