cws

package
v0.14.13-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDomain

func CreateDomain(req *CreateDomainRequest) (string, error)

func Destroy

func Destroy()

func Init

func Init(baseUrl string, timeoutSec time.Duration)

Types

type CreateDomainRequest

type CreateDomainRequest struct {
	Id                     string `json:"id" binding:"required"`
	Name                   string `json:"name" binding:"required"`
	Describe               string `json:"describe"`
	ExecutionRetentionDays int32  `json:"executionRetentionDays" binding:"required"`
}

type CreateDomainResponse

type CreateDomainResponse struct {
	ID string `json:"id" binding:"required"`
	// contains filtered or unexported fields
}

type DeleteDomainResponse

type DeleteDomainResponse struct {
	// contains filtered or unexported fields
}

type DomainInfo

type DomainInfo struct {
	ID                     string `json:"id" binding:"required"`
	Name                   string `json:"name" binding:"required"`
	Describe               string `json:"describe"`
	ExecutionRetentionDays int32  `json:"executionRetentionDays" binding:"required"`
}

type GetDomainsQuery

type GetDomainsQuery struct {
	ID       string `form:"id"`
	Name     string `form:"name"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type GetDomainsResponse

type GetDomainsResponse struct {
	PageNo     int          `json:"pageNo" binding:"required"`
	TotalCount int64        `json:"totalCount" binding:"required"`
	Infos      []DomainInfo `json:"infos" binding:"required"`
	// contains filtered or unexported fields
}

func GetDomains

func GetDomains(query *GetDomainsQuery) (*GetDomainsResponse, error)

Jump to

Keyboard shortcuts

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