server

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableVaryHeader

func DisableVaryHeader(next echo.HandlerFunc) echo.HandlerFunc

func GetState

func GetState(typ string, name string) bool

func NewAcsHanlder

func NewAcsHanlder() acs.AcsHanlder

func NewIAMServer

func NewIAMServer() *iam.IAMServer

func SetState

func SetState(typ string, name string, v bool)

func SetupAdmin

func SetupAdmin(s *iam.IAMServer, schema string) error

func SetupViewer

func SetupViewer(s *iam.IAMServer, schema string) error

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

func (*AcsHanlder) GetProduct(schema string, oui string, productClass string) acs.Product

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

func (*AcsHanlder) HandleFault(acsDevice acs.Device, id string, v *proto.SoapFault) error

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

func (s *AcsHanlder) HandleInform(ctx context.Context, inform *proto.Inform) error

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.

type Server

type Server struct {
	// contains filtered or unexported fields
}

@title NetDoop API @version 1.0 @host dev.netdoop.com @BasePath /api/v1 @schemes http @securityDefinitions.apikey Bearer @in header @name Authorization @description Type "Bearer" followed by a space and JWT token.

func NewServer

func NewServer() *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) Run

func (s *Server) Run()

func (*Server) Setup

func (s *Server) Setup()

Directories

Path Synopsis
api
omc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL