service

package
v0.5.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 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"`
}

Jump to

Keyboard shortcuts

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