All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DeleteQueue | Post /api/v1/delete/mailq | Delete Queue |
FlushQueue | Post /api/v1/edit/mailq | Flush Queue |
GetQueue | Get /api/v1/get/mailq/all | Get Queue |
DeleteQueue(ctx).DeleteQueueRequest(deleteQueueRequest).Execute()
Delete Queue
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shoopea/mailcow-go"
)
func main() {
deleteQueueRequest := *openapiclient.NewDeleteQueueRequest() // DeleteQueueRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.QueueManagerApi.DeleteQueue(context.Background()).DeleteQueueRequest(deleteQueueRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `QueueManagerApi.DeleteQueue``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiDeleteQueueRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
deleteQueueRequest | DeleteQueueRequest |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FlushQueue(ctx).FlushQueueRequest(flushQueueRequest).Execute()
Flush Queue
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shoopea/mailcow-go"
)
func main() {
flushQueueRequest := *openapiclient.NewFlushQueueRequest() // FlushQueueRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.QueueManagerApi.FlushQueue(context.Background()).FlushQueueRequest(flushQueueRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `QueueManagerApi.FlushQueue``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiFlushQueueRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
flushQueueRequest | FlushQueueRequest |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetQueue(ctx).Execute()
Get Queue
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shoopea/mailcow-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.QueueManagerApi.GetQueue(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `QueueManagerApi.GetQueue``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetQueueRequest struct via the builder pattern
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]