Documentation ¶
Index ¶
- func DisableVaryHeader(next echo.HandlerFunc) echo.HandlerFunc
- func GetState(typ string, name string) bool
- func NewAcsHanlder() acs.AcsHanlder
- func NewIAMServer() *iam.IAMServer
- func SetState(typ string, name string, v bool)
- func SetupAdmin(s *iam.IAMServer, schema string) error
- func SetupViewer(s *iam.IAMServer, schema string) error
- type AcsHanlder
- func (*AcsHanlder) GetDevice(schema string, oui string, productClass string, serialNumber string) acs.Device
- func (*AcsHanlder) GetProduct(schema string, oui string, productClass string) acs.Product
- func (s *AcsHanlder) HandleAddObjectResponse(ctx context.Context, acsDevice acs.Device, id string, ...) error
- func (s *AcsHanlder) HandleAutonomousTransferComplete(ctx context.Context, acsDevice acs.Device, ...) error
- func (s *AcsHanlder) HandleDeleteObjectResponse(ctx context.Context, acsDevice acs.Device, id string, ...) error
- func (s *AcsHanlder) HandleDownloadResponse(ctx context.Context, acsDevice acs.Device, id string, ...) error
- func (s *AcsHanlder) HandleFactoryResetResponse(ctx context.Context, acsDevice acs.Device, id string, ...) error
- func (*AcsHanlder) HandleFault(acsDevice acs.Device, id string, v *proto.SoapFault) error
- func (s *AcsHanlder) HandleGetParameterAttributesResponse(ctx context.Context, acsDevice acs.Device, id string, ...) error
- func (s *AcsHanlder) HandleGetParameterNamesResponse(ctx context.Context, acsDevice acs.Device, id string, ...) error
- func (s *AcsHanlder) HandleGetParameterValuesResponse(ctx context.Context, acsDevice acs.Device, id string, ...) error
- func (s *AcsHanlder) HandleGetRPCMethodsResponse(ctx context.Context, acsDevice acs.Device, id string, ...) error
- func (s *AcsHanlder) HandleInform(ctx context.Context, inform *proto.Inform) error
- func (s *AcsHanlder) HandleMesureValues(acsDevice acs.Device, filename string, values map[string]any)
- func (s *AcsHanlder) HandleRebootResponse(ctx context.Context, acsDevice acs.Device, id string, ...) error
- func (s *AcsHanlder) HandleSetParameterAttributesResponse(ctx context.Context, acsDevice acs.Device, id string, ...) error
- func (s *AcsHanlder) HandleSetParameterValuesResponse(ctx context.Context, acsDevice acs.Device, id string, ...) error
- func (s *AcsHanlder) HandleTransferComplete(ctx context.Context, acsDevice acs.Device, req *proto.TransferComplete) error
- func (s *AcsHanlder) HandleUploadResponse(ctx context.Context, acsDevice acs.Device, id string, ...) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableVaryHeader ¶
func DisableVaryHeader(next echo.HandlerFunc) echo.HandlerFunc
func NewAcsHanlder ¶
func NewAcsHanlder() acs.AcsHanlder
func NewIAMServer ¶
Types ¶
type AcsHanlder ¶
type AcsHanlder struct {
// contains filtered or unexported fields
}
func (*AcsHanlder) GetDevice ¶
func (*AcsHanlder) GetDevice(schema string, oui string, productClass string, serialNumber string) acs.Device
GetDevice implements acs.AcsHanlder.
func (*AcsHanlder) GetProduct ¶
GetProduct implements acs.AcsHanlder.
func (*AcsHanlder) HandleAddObjectResponse ¶
func (s *AcsHanlder) HandleAddObjectResponse(ctx context.Context, acsDevice acs.Device, id string, resp *proto.AddObjectResponse) error
HandleAddObjectResponse implements acs.AcsHanlder.
func (*AcsHanlder) HandleAutonomousTransferComplete ¶
func (s *AcsHanlder) HandleAutonomousTransferComplete(ctx context.Context, acsDevice acs.Device, req *proto.AutonomousTransferComplete) error
HandleAutonomousTransferComplete implements acs.AcsHanlder.
func (*AcsHanlder) HandleDeleteObjectResponse ¶
func (s *AcsHanlder) HandleDeleteObjectResponse(ctx context.Context, acsDevice acs.Device, id string, resp *proto.DeleteObjectResponse) error
HandleDeleteObjectResponse implements acs.AcsHanlder.
func (*AcsHanlder) HandleDownloadResponse ¶
func (s *AcsHanlder) HandleDownloadResponse(ctx context.Context, acsDevice acs.Device, id string, resp *proto.DownloadResponse) error
HandleDownloadResponse implements acs.AcsHanlder.
func (*AcsHanlder) HandleFactoryResetResponse ¶
func (s *AcsHanlder) HandleFactoryResetResponse(ctx context.Context, acsDevice acs.Device, id string, resp *proto.FactoryResetResponse) error
HandleFactoryResetResponse implements acs.AcsHanlder.
func (*AcsHanlder) HandleFault ¶
HandleFault implements acs.AcsHanlder.
func (*AcsHanlder) HandleGetParameterAttributesResponse ¶
func (s *AcsHanlder) HandleGetParameterAttributesResponse(ctx context.Context, acsDevice acs.Device, id string, resp *proto.GetParameterAttributesResponse) error
HandleGetParameterAttributesResponse implements acs.AcsHanlder.
func (*AcsHanlder) HandleGetParameterNamesResponse ¶
func (s *AcsHanlder) HandleGetParameterNamesResponse(ctx context.Context, acsDevice acs.Device, id string, resp *proto.GetParameterNamesResponse) error
HandleGetParameterNamesResponse implements acs.AcsHanlder.
func (*AcsHanlder) HandleGetParameterValuesResponse ¶
func (s *AcsHanlder) HandleGetParameterValuesResponse(ctx context.Context, acsDevice acs.Device, id string, resp *proto.GetParameterValuesResponse) error
HandleGetParameterValuesResponse implements acs.AcsHanlder.
func (*AcsHanlder) HandleGetRPCMethodsResponse ¶
func (s *AcsHanlder) HandleGetRPCMethodsResponse(ctx context.Context, acsDevice acs.Device, id string, resp *proto.GetRPCMethodsResponse) error
HandleGetRPCMethodsResponse implements acs.AcsHanlder.
func (*AcsHanlder) HandleInform ¶
HandleInform implements acs.AcsHanlder.
func (*AcsHanlder) HandleMesureValues ¶
func (s *AcsHanlder) HandleMesureValues(acsDevice acs.Device, filename string, values map[string]any)
HandleMesureValues implements acs.AcsHanlder.
func (*AcsHanlder) HandleRebootResponse ¶
func (s *AcsHanlder) HandleRebootResponse(ctx context.Context, acsDevice acs.Device, id string, resp *proto.RebootResponse) error
HandleRebootResponse implements acs.AcsHanlder.
func (*AcsHanlder) HandleSetParameterAttributesResponse ¶
func (s *AcsHanlder) HandleSetParameterAttributesResponse(ctx context.Context, acsDevice acs.Device, id string, resp *proto.SetParameterAttributesResponse) error
HandleSetParameterAttributesResponse implements acs.AcsHanlder.
func (*AcsHanlder) HandleSetParameterValuesResponse ¶
func (s *AcsHanlder) HandleSetParameterValuesResponse(ctx context.Context, acsDevice acs.Device, id string, resp *proto.SetParameterValuesResponse) error
HandleSetParameterValuesResponse implements acs.AcsHanlder.
func (*AcsHanlder) HandleTransferComplete ¶
func (s *AcsHanlder) HandleTransferComplete(ctx context.Context, acsDevice acs.Device, req *proto.TransferComplete) error
HandleTransferComplete implements acs.AcsHanlder.
func (*AcsHanlder) HandleUploadResponse ¶
func (s *AcsHanlder) HandleUploadResponse(ctx context.Context, acsDevice acs.Device, id string, resp *proto.UploadResponse) error
HandleUploadResponse implements acs.AcsHanlder.