ratpanel

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(serverUrl string, accessTokenId int64, accessToken string) (*Client, error)

func (*Client) SetSettingCert

func (c *Client) SetSettingCert(req *SetSettingCertRequest) (*SetSettingCertResponse, error)

func (*Client) SetSettingCertWithContext

func (c *Client) SetSettingCertWithContext(ctx context.Context, req *SetSettingCertRequest) (*SetSettingCertResponse, error)

func (*Client) SetTLSConfig

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

func (*Client) SetTimeout

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

func (*Client) SetWebsiteCert

func (c *Client) SetWebsiteCert(req *SetWebsiteCertRequest) (*SetWebsiteCertResponse, error)

func (*Client) SetWebsiteCertWithContext

func (c *Client) SetWebsiteCertWithContext(ctx context.Context, req *SetWebsiteCertRequest) (*SetWebsiteCertResponse, error)

type SetSettingCertRequest

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

type SetSettingCertResponse

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

func (*SetSettingCertResponse) GetMessage

func (r *SetSettingCertResponse) GetMessage() string

type SetWebsiteCertRequest

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

type SetWebsiteCertResponse

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

func (*SetWebsiteCertResponse) GetMessage

func (r *SetWebsiteCertResponse) GetMessage() string

Jump to

Keyboard shortcuts

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