Documentation ¶
Index ¶
- type AlreadyExistsError
- type Module
- func (s *Module) Create(request cosmostypes.Request, srv *service.Service) (*service.Service, error)
- func (s *Module) Delete(request cosmostypes.Request, hash hash.Hash) error
- func (s *Module) Get(request cosmostypes.Request, hash hash.Hash) (*service.Service, error)
- func (s *Module) List(request cosmostypes.Request) ([]*service.Service, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlreadyExistsError ¶
AlreadyExistsError is an not found error.
func (*AlreadyExistsError) Error ¶
func (e *AlreadyExistsError) Error() string
type Module ¶ added in v0.14.0
type Module struct {
// contains filtered or unexported fields
}
Module is the service module.
func NewModule ¶ added in v0.14.0
func NewModule(app *cosmos.AppFactory, c container.Container) *Module
NewModule returns the module of the service sdk.
func (*Module) Create ¶ added in v0.14.0
func (s *Module) Create(request cosmostypes.Request, srv *service.Service) (*service.Service, error)
Create creates a new service from definition.
type Service ¶
type Service interface { Create(srv *service.Service) (*service.Service, error) Delete(hash hash.Hash) error Get(hash hash.Hash) (*service.Service, error) List() ([]*service.Service, error) }
Service is the interface of this sdk
func NewDeprecated ¶ added in v0.14.0
NewDeprecated creates a new Service SDK with given options.
Click to show internal directories.
Click to hide internal directories.