Documentation
¶
Index ¶
- type IPAllocationsList
- type IPService
- func (s *IPService) Reload(ctx *context.Context)
- func (s *IPService) Shutdown(ctx *context.Context)
- func (s *IPService) StartLoop(ctx *context.Context)
- func (s *IPService) V1AllocateIP(ctx *context.Context, args *utils.CGREvent, reply *string) (err error)
- func (s *IPService) V1AuthorizeIP(ctx *context.Context, args *utils.CGREvent, reply *string) (err error)
- func (s *IPService) V1GetIPAllocations(ctx *context.Context, arg *utils.TenantIDWithAPIOpts, ...) error
- func (s *IPService) V1GetIPAllocationsForEvent(ctx *context.Context, args *utils.CGREvent, reply *IPAllocationsList) (err error)
- func (s *IPService) V1ReleaseIP(ctx *context.Context, args *utils.CGREvent, reply *string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAllocationsList ¶
type IPAllocationsList []*ipAllocations
IPAllocationsList is a collection of ipAllocations objects.
type IPService ¶
type IPService struct {
// contains filtered or unexported fields
}
IPService is the service handling IP allocations
func NewIPService ¶
func NewIPService(dm *engine.DataManager, cfg *config.CGRConfig, fltrs *engine.FilterS, cm *engine.ConnManager) *IPService
NewIPService returns a new IPService
func (*IPService) V1AllocateIP ¶
func (s *IPService) V1AllocateIP(ctx *context.Context, args *utils.CGREvent, reply *string) (err error)
V1AllocateIP is called when an IP requires allocation.
func (*IPService) V1AuthorizeIP ¶
func (s *IPService) V1AuthorizeIP(ctx *context.Context, args *utils.CGREvent, reply *string) (err error)
V1AuthorizeIP queries service to find if an Usage is allowed
func (*IPService) V1GetIPAllocations ¶
func (s *IPService) V1GetIPAllocations(ctx *context.Context, arg *utils.TenantIDWithAPIOpts, reply *utils.IPAllocations) error
V1GetIPAllocations returns a resource configuration
func (*IPService) V1GetIPAllocationsForEvent ¶
func (s *IPService) V1GetIPAllocationsForEvent(ctx *context.Context, args *utils.CGREvent, reply *IPAllocationsList) (err error)
V1GetIPAllocationsForEvent returns active IPs matching the event.
Click to show internal directories.
Click to hide internal directories.