Documentation ¶
Index ¶
- func PerformHttpAction(req *http.Request) error
- func UniversalBase(filePath string) string
- type M4Client
- func (m *M4Client) ChangeDirectory(remotedirectory string) error
- func (m *M4Client) CurrentDirectory() (string, error)
- func (m *M4Client) DeleteRom(romNumber int) error
- func (m *M4Client) Download(remotePath string) error
- func (m *M4Client) DownloadContent(remotepath string) ([]byte, error)
- func (m *M4Client) Execute(cpcfile string) error
- func (m *M4Client) ExecuteCmd(cmd, cpcfile string) error
- func (m *M4Client) GetCache(remotePath string) (string, error)
- func (m *M4Client) GetDir(remotepath string) (*M4Dir, error)
- func (m *M4Client) Ls(remoteDirectory string) (string, error)
- func (m *M4Client) MakeDirectory(remotedirectory string) error
- func (m *M4Client) PauseCpc() error
- func (m *M4Client) Remove(cpcfile string) error
- func (m *M4Client) ResetCpc() error
- func (m *M4Client) ResetM4() error
- func (m *M4Client) Run(cpcfile string) error
- func (m *M4Client) Start() error
- func (m *M4Client) Upload(remotePath, localPath string) error
- func (m *M4Client) UploadDirectoryContent(remotePath, localDirectoryPath string) error
- func (m *M4Client) UploadRom(romFilpath, romName string, romId int) error
- func (m *M4Client) Url() string
- type M4Dir
- type M4HttpAction
- type M4Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PerformHttpAction ¶
func UniversalBase ¶
Types ¶
type M4Client ¶
type M4Client struct { IPClient string // contains filtered or unexported fields }
M4Client M4 http client with action, address ip client and Cpc file path
func (*M4Client) ChangeDirectory ¶
func (*M4Client) CurrentDirectory ¶
func (*M4Client) DownloadContent ¶
func (*M4Client) ExecuteCmd ¶
func (*M4Client) Ls ¶
./m4client -host 192.168.1.20 -ls Jeux Remote path (Jeux/ Ishido.dsk,1,190K Doomsday_Lost_Echoes_v1.0,0,0 GalacticTomb_128K,0,0 ImperialMahjong,0,0 Orion Prime (FR) (Cargosoft),0,0 The Shadows Of Sergoth v1.0 (F,UK,S) (128K) (Face A) (2018) [Original].dsk,1,190K The Shadows Of Sergoth v1.0 (F,UK,S) (128K) (Face B) (2018) [Original].dsk,1,190K Ishido,0,0 ) host (192.168.1.20)
func (*M4Client) MakeDirectory ¶
func (*M4Client) UploadDirectoryContent ¶
type M4HttpAction ¶
type M4HttpAction string
M4HttpAction is struct for url complement according to the action
const ( M4Reset M4HttpAction = "config.cgi?mres" CpcReset M4HttpAction = "config.cgi?cres" Start M4HttpAction = "config.cgi?cctr" Mkdir M4HttpAction = "config.cgi?mkdir=" Ls M4HttpAction = "config.cgi?ls=" Cd M4HttpAction = "config.cgi?cd=" Rm M4HttpAction = "config.cgi?rm=" Execute M4HttpAction = "config.cgi?run2=" Run M4HttpAction = "config.cgi?run=" Pause M4HttpAction = "config.cgi?chlt" Upload M4HttpAction = "upload.html" Download M4HttpAction = "sd/" Rom M4HttpAction = "roms.shtml" )
M4 Wifi card http possibles actions
Click to show internal directories.
Click to hide internal directories.