server

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DevPushMaxSize int64 = 100 << 20 // ~ 100 mb
)

Functions

This section is empty.

Types

type Options

type Options struct {
	App               xtypes.App
	GinEngine         *gin.Engine
	StaticHosts       map[string]string
	ResolveHostTenant func(host string) string
	RootController    *controllers.RootController
	RootHost          string
	TenantHostBase    string
	Port              string
}

type ResetRequest

type ResetRequest struct {
	PlugId  string `json:"plug_id,omitempty"`
	AgentId string `json:"agent_id,omitempty"`
}

type Server

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

func New

func New(opts Options) *Server

func (*Server) API

func (s *Server) API(rg *gin.RouterGroup)

func (*Server) AuthIndex

func (s *Server) AuthIndex(ctx *gin.Context)

func (*Server) BuildRoutes

func (s *Server) BuildRoutes() error

func (*Server) Close

func (s *Server) Close() error

func (*Server) DevBprintFileDel

func (s *Server) DevBprintFileDel(dclaim *claim.PlugDevTkt, ctx *gin.Context)

func (*Server) DevBprintFileGet

func (s *Server) DevBprintFileGet(dclaim *claim.PlugDevTkt, ctx *gin.Context)

func (*Server) DevBprintFileList

func (s *Server) DevBprintFileList(dclaim *claim.PlugDevTkt, ctx *gin.Context)

func (*Server) DevBprintFilePush

func (s *Server) DevBprintFilePush(dclaim *claim.PlugDevTkt, ctx *gin.Context)

func (*Server) DevExecReset

func (s *Server) DevExecReset(dclaim *claim.PlugDevTkt, ctx *gin.Context)

func (*Server) DevExecRun

func (s *Server) DevExecRun(dclaim *claim.PlugDevTkt, ctx *gin.Context)

func (*Server) DevExecWatch

func (s *Server) DevExecWatch(dclaim *claim.PlugDevTkt, ctx *gin.Context)

func (*Server) DevModifyAgent

func (s *Server) DevModifyAgent(dclaim *claim.PlugDevTkt, ctx *gin.Context)

func (*Server) DevModifyPlug

func (s *Server) DevModifyPlug(dclaim *claim.PlugDevTkt, ctx *gin.Context)

func (*Server) GetAdapterHub

func (s *Server) GetAdapterHub() any

func (*Server) HandleRemote

func (s *Server) HandleRemote(req *remote.Request) (*remote.Response, error)

func (*Server) Listen

func (s *Server) Listen() error

func (*Server) X

func (s *Server) X(fn func(ctx httpx.Request)) func(*gin.Context)

Jump to

Keyboard shortcuts

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