Documentation ¶
Index ¶
- type Backend
- func (s *Backend) Create(request cosmostypes.Request, msg *msgCreateService) (*service.Service, error)
- func (s *Backend) Exists(request cosmostypes.Request, hash hash.Hash) (bool, error)
- func (s *Backend) Get(request cosmostypes.Request, hash hash.Hash) (*service.Service, error)
- func (s *Backend) Hash(serviceRequest *api.CreateServiceRequest) hash.Hash
- func (s *Backend) List(request cosmostypes.Request) ([]*service.Service, error)
- type SDK
- func (s *SDK) Create(req *api.CreateServiceRequest) (*service.Service, error)
- func (s *SDK) Exists(hash hash.Hash) (bool, error)
- func (s *SDK) Get(hash hash.Hash) (*service.Service, error)
- func (s *SDK) Hash(req *api.CreateServiceRequest) (hash.Hash, error)
- func (s *SDK) List() ([]*service.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶ added in v0.15.0
type Backend struct {
// contains filtered or unexported fields
}
Backend is the service backend.
func NewBackend ¶ added in v0.15.0
func NewBackend(appFactory *cosmos.AppFactory, ownerships *ownershipsdk.Backend) *Backend
NewBackend returns the backend of the service sdk.
func (*Backend) Create ¶ added in v0.15.0
func (s *Backend) Create(request cosmostypes.Request, msg *msgCreateService) (*service.Service, error)
Create creates a new service.
func (*Backend) Exists ¶ added in v0.16.0
Exists returns true if a specific set of data exists in the database, false otherwise
type SDK ¶ added in v0.15.0
type SDK struct {
// contains filtered or unexported fields
}
SDK is the service sdk.
Click to show internal directories.
Click to hide internal directories.