Skip to content

Latest commit

 

History

History
73 lines (45 loc) · 1.66 KB

VpnApi.md

File metadata and controls

73 lines (45 loc) · 1.66 KB

\VpnApi

All URIs are relative to http://localhost

Method HTTP request Description
StartLetheand Get /letheand/start

StartLetheand

StartLetheand(ctx).DataDir(dataDir).Version(version).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    dataDir := "dataDir_example" // string | Returns the binary version
    version := true // bool | Returns the binary version (optional)

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.VpnApi.StartLetheand(context.Background()).DataDir(dataDir).Version(version).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `VpnApi.StartLetheand``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiStartLetheandRequest struct via the builder pattern

Name Type Description Notes
dataDir string Returns the binary version
version bool Returns the binary version

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]