gomobile

package
v1.61.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package gomobile exports shims for gomobile use

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RcloneFinalize

func RcloneFinalize()

RcloneFinalize finalizes the library

func RcloneInitialize

func RcloneInitialize()

RcloneInitialize initializes rclone as a library

Types

type RcloneRPCResult

type RcloneRPCResult struct {
	Output string
	Status int
}

RcloneRPCResult is returned from RcloneRPC

Output will be returned as a serialized JSON object
Status is a HTTP status return (200=OK anything else fail)

func RcloneRPC

func RcloneRPC(method string, input string) (result *RcloneRPCResult)

RcloneRPC has an interface optimised for gomobile, in particular the function signature is valid under gobind rules.

https://pkg.go.dev/golang.org/x/mobile/cmd/gobind#hdr-Type_restrictions

Jump to

Keyboard shortcuts

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