Versions in this module Expand all Collapse all v0 v0.21.1 Apr 1, 2019 Changes in this version + const ConnStart + const ConnStop + const ErrAccessDenied + const ErrBadClientPassword + const ErrBadProductConfig + const ErrChannelNotFound + const ErrEndpointNotFound + const ErrInternal + const ErrNonActiveChannel + const ErrSessionNotFound + const ProductExternalIP + type ConnChangeResult struct + Channel string + Status string + type Handler struct + func NewHandler(logger log.Logger, db *reform.DB, countryConf *country.Config, queue job.Queue) *Handler + func (h *Handler) AuthClient(product, productPassword, clientKey, clientPassword string) error + func (h *Handler) ConnChange(ctx context.Context, product, productPassword string) (*rpc.Subscription, error) + func (h *Handler) GetEndpoint(product, productPassword, clientKey string) (*data.Endpoint, error) + func (h *Handler) SetProductConfig(product, productPassword string, config map[string]string) error + func (h *Handler) StartSession(product, productPassword, clientKey, ip string, port uint16) (*data.Offering, error) + func (h *Handler) UpdateSession(product, productPassword, clientKey string, units uint64, stopSession bool) error