Versions in this module Expand all Collapse all v0 v0.0.3 Dec 29, 2024 Changes in this version + type FlexibleInt64 struct + Value *int64 + func (f *FlexibleInt64) UnmarshalJSON(data []byte) error v0.0.2 Nov 23, 2024 Changes in this version type Client + LastLoginTime time.Time v0.0.1 Nov 21, 2024 Changes in this version + func GenerateShortIDs() []string + func GenerateVLESSLink(inbound Inbound, email string) (string, error) + type APIResponse struct + Msg string + Obj T + Success bool + type AddInboundClientConfig struct + Clients []InboundClient + type AddInboundClientPayload struct + ID int + Settings AddInboundClientConfig + type AddInboundPayload struct + Allocate string + Down int64 + Enable bool + ExpiryTime int64 + Listen string + Port int + Protocol string + Remark string + Settings string + Sniffing string + StreamSettings string + Total int64 + Up int64 + type AddInboundRealitySettings struct + Dest string + PrivateKey string + ServerNames []string + Settings struct{ ... } + ShortIDs []string + Show bool + Xver int + type AddInboundSettings struct + Clients []Client + Decryption string + Fallbacks []string + type AddInboundStreamSettings struct + ExternalProxy []string + Network string + RealitySettings AddInboundRealitySettings + Security string + TCPSettings AddInboundTCPSettings + type AddInboundTCPSettings struct + AcceptProxyProtocol bool + Header struct{ ... } + type CertificateResponse struct + PrivateKey string + PublicKey string + type Client struct + BaseURL string + Logger *slog.Logger + Password string + Resty *resty.Client + Username string + func NewClient(baseURL, username, password string, insecure bool, logger *slog.Logger) *Client + func (c *Client) AddInbound(payload AddInboundPayload) (*Inbound, error) + func (c *Client) AddInboundClient(inboundID int, clientConfig InboundClient) error + func (c *Client) GenerateDefaultInboundClient(email string, tgID int64) InboundClient + func (c *Client) GenerateDefaultInboundConfig(remark, realityCover, listenIP string, port int) (AddInboundPayload, error) + func (c *Client) GetNewCertificate() (CertificateResponse, error) + func (c *Client) GetOnlineClients() (OnlinesResponse, error) + func (c *Client) ListInbounds() ([]Inbound, error) + func (c *Client) Login() error + type ClientStats struct + Down int64 + Email string + Enable bool + ExpiryTime int64 + ID int + InboundID int + Reset int64 + Total int64 + Up int64 + type FetchCertificateResponse struct + Msg string + Obj CertificateResponse + Success bool + type Inbound struct + Allocate string + ClientStats []ClientStats + Down int64 + Enable bool + ExpiryTime int64 + ID int + Listen string + Port int + Protocol string + Remark string + Settings string + Sniffing string + StreamSettings string + Tag string + Total int64 + Up int64 + type InboundClient struct + Email string + Enable bool + ExpiryTime int64 + Flow string + ID string + LimitIP int + Reset int + SubID string + TgID int64 + TotalGB int + type InboundSettings struct + Clients []InboundClient + Decryption string + Fallbacks []string + type OnlinesResponse []string