Documentation
¶
Index ¶
- type ResourceS
- func (rS *ResourceS) Reload(ctx *context.Context)
- func (rS *ResourceS) Shutdown(ctx *context.Context)
- func (rS *ResourceS) StartLoop(ctx *context.Context)
- func (rS *ResourceS) V1AllocateResources(ctx *context.Context, args *utils.CGREvent, reply *string) (err error)
- func (rS *ResourceS) V1AuthorizeResources(ctx *context.Context, args *utils.CGREvent, reply *string) (err error)
- func (rS *ResourceS) V1GetResource(ctx *context.Context, arg *utils.TenantIDWithAPIOpts, reply *utils.Resource) error
- func (rS *ResourceS) V1GetResourceWithConfig(ctx *context.Context, arg *utils.TenantIDWithAPIOpts, ...) (err error)
- func (rS *ResourceS) V1GetResourcesForEvent(ctx *context.Context, args *utils.CGREvent, reply *Resources) (err error)
- func (rS *ResourceS) V1ReleaseResources(ctx *context.Context, args *utils.CGREvent, reply *string) (err error)
- type Resources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceS ¶
type ResourceS struct {
// contains filtered or unexported fields
}
ResourceS is the service handling resources
func NewResourceService ¶
func NewResourceService(dm *engine.DataManager, cgrcfg *config.CGRConfig, filterS *engine.FilterS, connMgr *engine.ConnManager) *ResourceS
NewResourceService returns a new ResourceService
func (*ResourceS) V1AllocateResources ¶
func (rS *ResourceS) V1AllocateResources(ctx *context.Context, args *utils.CGREvent, reply *string) (err error)
V1AllocateResources is called when a resource requires allocation
func (*ResourceS) V1AuthorizeResources ¶
func (rS *ResourceS) V1AuthorizeResources(ctx *context.Context, args *utils.CGREvent, reply *string) (err error)
V1AuthorizeResources queries service to find if an Usage is allowed
func (*ResourceS) V1GetResource ¶
func (rS *ResourceS) V1GetResource(ctx *context.Context, arg *utils.TenantIDWithAPIOpts, reply *utils.Resource) error
V1GetResource returns a resource configuration
func (*ResourceS) V1GetResourceWithConfig ¶
func (rS *ResourceS) V1GetResourceWithConfig(ctx *context.Context, arg *utils.TenantIDWithAPIOpts, reply *utils.ResourceWithConfig) (err error)
Click to show internal directories.
Click to hide internal directories.