Skip to content

snail007/goproxy-sdk-commercial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

goproxy-sdk-commercial

goproxy sdk commercial edition

Download

The following platforms are supported:

  • Android, .arr library
  • IOS, .framework library
  • Windows, .dll library
  • Linux, .so library
  • MacOS, .dylib library

Android SDK

Example

1. Importing packages

import snail007.goproxy.sdk.Sdk;

2. Start a service

String serviceID="http01";// serviceID is globally unique.
String serviceArgs="http -p :8080";
Sdk.setAuthCode("xxx");//xxx auth code is purchased from platform 
String err=Sdk.start(serviceID,serviceArgs);
if (!err.isEmpty()){
    // Failed to start
    System.out.println("start fail,error:"+err);
}else{
    // Successful launch
}

3. Stop service

String serviceID="http01";
Proxy.stop(serviceID);
// Stop over.

When the service starts,if there is a service running with the same ID, then the previous service will be stopped and the previous service will be overwritten later.

So make sure that the first ID parameter is unique every time you start the service.

The specific usage and parameters of these services can be found in proxy manual

Debugging

setting as image, No Filters, Keyword: GoLog, will show all sdk output. image

Important

The SDK args parameter does not support the --daemon and --forever.

About

goproxy sdk commercial edition

Resources

Stars

Watchers

Forks

Packages

No packages published