Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AllServices(ctx context.Context, req *types.QueryAllServicesRequest) (*types.QueryAllServicesResponse, error)
- func (k Keeper) GetAllServices(ctx context.Context) (services []sharedtypes.Service)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetParams(ctx context.Context) (params types.Params)
- func (k Keeper) GetService(ctx context.Context, serviceId string) (service sharedtypes.Service, found bool)
- func (k Keeper) Logger() log.Logger
- func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveService(ctx context.Context, serviceId string)
- func (k Keeper) Service(ctx context.Context, req *types.QueryGetServiceRequest) (*types.QueryGetServiceResponse, error)
- func (k Keeper) SetParams(ctx context.Context, params types.Params) error
- func (k Keeper) SetService(ctx context.Context, service sharedtypes.Service)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeService store.KVStoreService, logger log.Logger, authority string, bankKeeper types.BankKeeper, ) Keeper
func (Keeper) AllServices ¶
func (k Keeper) AllServices(ctx context.Context, req *types.QueryAllServicesRequest) (*types.QueryAllServicesResponse, error)
AllServices queries all services.
func (Keeper) GetAllServices ¶ added in v0.0.4
func (k Keeper) GetAllServices(ctx context.Context) (services []sharedtypes.Service)
GetAllServices returns all services
func (Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
func (Keeper) GetService ¶
func (k Keeper) GetService( ctx context.Context, serviceId string, ) (service sharedtypes.Service, found bool)
GetService returns a service from its index
func (Keeper) Params ¶
func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveService ¶
RemoveService removes a service from the store
func (Keeper) Service ¶
func (k Keeper) Service(ctx context.Context, req *types.QueryGetServiceRequest) (*types.QueryGetServiceResponse, error)
Service returns the requested service if it exists.
func (Keeper) SetService ¶
func (k Keeper) SetService(ctx context.Context, service sharedtypes.Service)
SetService set a specific service in the store from its index
Click to show internal directories.
Click to hide internal directories.