Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractService ¶
type ContractService interface { Create(m *pb_contract.Contract) error Update(m *pb_contract.Contract) error Delete(u string) error Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_contract.Contract, error) Get(filter interface{}) (*pb_contract.Contract, error) }
ContractService interface
func NewContractService ¶
func NewContractService(pluginDatabaseMongoDB *plugin_database_mongodb.Plugin) ContractService
NewContractService init
type Service ¶
type Service struct { ServiceName string `mapstructure:"service_name"` Contract struct { RPC pb_contract.ContractService Create opts `mapstructure:"create"` Update opts `mapstructure:"update"` Delete opts `mapstructure:"delete"` Paginate opts `mapstructure:"paginate"` Get opts `mapstructure:"get"` } `mapstructure:"contract"` }
Click to show internal directories.
Click to hide internal directories.