ratpanelsdk

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse interface {
	GetMessage() string
}

type Client

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

func NewClient

func NewClient(apiHost string, accessTokenId int32, accessToken string) *Client

func (*Client) SettingCert

func (c *Client) SettingCert(req *SettingCertRequest) (*SettingCertResponse, error)

func (*Client) WebsiteCert

func (c *Client) WebsiteCert(req *WebsiteCertRequest) (*WebsiteCertResponse, error)

func (*Client) WithTLSConfig

func (c *Client) WithTLSConfig(config *tls.Config) *Client

func (*Client) WithTimeout

func (c *Client) WithTimeout(timeout time.Duration) *Client

type SettingCertRequest

type SettingCertRequest struct {
	Certificate string `json:"cert"`
	PrivateKey  string `json:"key"`
}

type SettingCertResponse

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

func (*SettingCertResponse) GetMessage

func (r *SettingCertResponse) GetMessage() string

type WebsiteCertRequest

type WebsiteCertRequest struct {
	SiteName    string `json:"name"`
	Certificate string `json:"cert"`
	PrivateKey  string `json:"key"`
}

type WebsiteCertResponse

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

func (*WebsiteCertResponse) GetMessage

func (r *WebsiteCertResponse) GetMessage() string

Jump to

Keyboard shortcuts

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