roma_api_go

package module
v0.0.0-...-48c4e2d Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 9 Imported by: 0

README

ROMA API Go SDK

Go Version License Version

ROMA API 的 Go 语言 SDK,使用 API Key 进行认证。

特性

  • ✅ 完整的 API 覆盖(资源、用户、角色、系统等)
  • ✅ 类型安全的资源操作
  • ✅ Option 模式配置客户端
  • ✅ 自动 JSON 字段大小写转换
  • ✅ 完善的错误处理
  • ✅ 零外部依赖(仅使用标准库)

安装

go get binrc.com/roma/roma-api-go

快速开始

package main

import (
    "fmt"
    "time"
    roma "binrc.com/roma/roma-api-go"
)

func main() {
    // 创建客户端
    client := roma.NewRomaApiClient(roma.RomaApiClientOptions{
        APIKey: "your-api-key",
        Host:   "localhost",
        Port:   6999,
        TLS:    false,
    })
    
    // 或者使用完整配置
    client := roma.NewRomaApiClient(roma.RomaApiClientOptions{
        APIKey:  "your-api-key",
        Host:    "localhost",
        Port:    6999,
        TLS:     false,
        Timeout: 60 * time.Second, // 可选:设置超时时间
    })
    
    // 创建 Linux 资源
    linuxConfig := &roma.LinuxConfig{
        Hostname:    "test-server",
        Port:        22,
        IPv4Pub:     "192.168.1.100",
        Username:    "root",
        Password:    "password123",
        Description: "测试服务器",
    }
    
    err := client.CreateLinux(linuxConfig, "ops", nil)
    if err != nil {
        fmt.Printf("错误: %v\n", err)
        return
    }
    
    // 获取所有 Linux 资源
    linuxs, err := client.GetLinuxs()
    if err != nil {
        fmt.Printf("错误: %v\n", err)
        return
    }
    
    for _, linux := range linuxs {
        fmt.Printf("ID: %d, Hostname: %s\n", linux.ID, linux.Hostname)
    }
}

客户端配置

client := roma.NewRomaApiClient(roma.RomaApiClientOptions{
    APIKey:     "your-api-key",           // 必需:API 密钥
    Host:       "localhost",              // 必需:服务器地址
    Port:       6999,                     // 必需:服务器端口
    TLS:        false,                    // 必需:是否使用 HTTPS
    Timeout:    60 * time.Second,         // 可选:请求超时时间(默认 30 秒)
    HTTPClient: httpClient,                // 可选:自定义 HTTP 客户端
    BaseURL:    "https://api.example.com", // 可选:自定义基础 URL(会覆盖 host/port/tls)
})

默认值:

  • Host: localhost
  • Port: 6999
  • TLS: false
  • Timeout: 30 秒

API 方法

客户端初始化
client := roma.NewRomaApiClient(apiKey, host, port, tls)

参数:

  • apiKey: API 密钥
  • host: 服务器地址
  • port: 服务器端口
  • tls: 是否使用 HTTPS
通用资源操作
// 创建资源
client.CreateResource(resourceType, data, role, spaceID)

// 删除资源
client.DelResource(resourceType, ids)

// 更新资源
client.UpdateResource(resourceType, data, role, spaceID)

// 获取资源列表
client.GetResource(resourceType)

// 通过 ID 获取单个资源
client.GetResourceByID(resourceType, id)

// 获取数据库类型列表
client.GetDatabaseTypes()
Linux 资源操作
// 创建 Linux 资源
client.CreateLinux(config, role, spaceID)

// 删除 Linux 资源
client.DelLinux(id)

// 更新 Linux 资源
client.UpdateLinux(config, role, spaceID)

// 获取单个 Linux 资源
client.GetLinux(id)

// 获取所有 Linux 资源
client.GetLinuxs()
其他资源类型

支持以下资源类型,每个类型都有类似的方法:

  • Router: CreateRouter, DelRouter, UpdateRouter, GetRouter, GetRouters
  • Database: CreateDatabase, DelDatabase, UpdateDatabase, GetDatabase, GetDatabases
  • Windows: CreateWindows, DelWindows, UpdateWindows, GetWindows, GetWindowss
  • Docker: CreateDocker, DelDocker, UpdateDocker, GetDocker, GetDockers
  • Switch: CreateSwitch, DelSwitch, UpdateSwitch, GetSwitch, GetSwitches
用户管理
// 创建用户
client.CreateUser(req)

// 删除用户
client.DelUser(id)

// 更新用户
client.UpdateUser(id, req)

// 获取单个用户
client.GetUser(id)

// 获取所有用户
client.GetUsers()

// 获取当前用户信息
client.GetCurrentUser()

// 更新当前用户资料
client.UpdateProfile(req)
角色管理
// 创建角色
client.CreateRole(role)

// 删除角色
client.DelRole(id)

// 更新角色
client.UpdateRole(id, role)

// 获取单个角色
client.GetRole(id)

// 获取所有角色
client.GetRoles()
系统信息
// 获取系统信息
client.GetSystemInfo()

// 健康检查
client.GetHealth()
API Key 管理
// 创建 API Key
client.CreateApikey(req)

// 删除 API Key
client.DelApikey(id)

// 获取单个 API Key
client.GetApikey(id)

// 获取所有 API Key
client.GetApikeys()
SSH 密钥管理
// 获取当前用户的 SSH 公钥
client.GetMySSHKey()

// 上传 SSH 密钥
client.UploadSSHKey(publicKey)

// 重新生成 SSH 密钥
client.GenerateSSHKey()
空间管理
// 创建空间
client.CreateSpace(req)

// 获取单个空间
client.GetSpace(id)

// 获取所有空间
client.GetSpaces()

// 添加空间成员
client.AddSpaceMember(spaceID, userID)

// 移除空间成员
client.RemoveSpaceMember(spaceID, userID)
黑名单管理
// 获取所有黑名单(支持分页)
client.GetAllBlacklists(page, pageSize)

// 添加 IP 到黑名单
client.AddToBlacklist(ip)

// 获取 IP 的黑名单信息
client.GetBlacklistByIP(ip)

// 从黑名单移除 IP
client.RemoveFromBlacklist(ip)

// 获取 IP 信息
client.GetIPInfo(ip)
日志查询
// 获取访问日志
client.GetAccessLogs(username, resourceType, limit)

// 获取凭证日志
client.GetCredentialLogs(username, limit)

// 获取审计日志
client.GetAuditLogs(username, resourceType, limit)
资源连接器
// 数据库连接
client.GetDatabaseConnectionInfo(id)
client.ExecuteDatabaseQuery(id, query)

// Docker 连接
client.GetDockerConnectionInfo(id)
client.ExecuteDockerCommand(id, command)

// Windows 连接
client.GetWindowsConnectionInfo(id)

// 路由器连接
client.GetRouterConnectionInfo(id)
client.ExecuteRouterCommand(id, command)

// 交换机连接
client.GetSwitchConnectionInfo(id)
client.ExecuteSwitchCommand(id, command)

示例

完整示例请参考 example/main.go

Documentation

Index

Constants

View Source
const Version = "0.1.0"

Version is the current version of the SDK

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() string

GetVersion returns the current SDK version

func IsAPIError

func IsAPIError(err error) bool

IsAPIError checks if an error is an APIError

Types

type APIError

type APIError struct {
	Code    int
	Message string
	URI     string
}

APIError represents an error returned by the API

func AsAPIError

func AsAPIError(err error) (*APIError, bool)

AsAPIError converts an error to APIError if possible

func (*APIError) Error

func (e *APIError) Error() string

type APIResponse

type APIResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data any    `json:"data"`
	URI  string `json:"uri,omitempty"`
}

type Apikey

type Apikey struct {
	ID          uint      `json:"ID"`
	Apikey      string    `json:"API_KEY"`
	Description string    `json:"DESCRIPTION"`
	ExpiresAt   time.Time `json:"EXPIRES_AT"`
	CreatedAt   time.Time `json:"CREATED_AT"`
	UpdatedAt   time.Time `json:"UPDATED_AT"`
}

type CreateApikeyRequest

type CreateApikeyRequest struct {
	Description string `json:"DESCRIPTION"`
	ExpiresDays int    `json:"EXPIRES_DAYS"`
}

type CreateSpaceRequest

type CreateSpaceRequest struct {
	Name        string `json:"NAME"`
	Description string `json:"DESCRIPTION"`
}

type CreateUserRequest

type CreateUserRequest struct {
	Username  string   `json:"USERNAME"`
	Name      string   `json:"NAME"`
	Nickname  string   `json:"NICKNAME"`
	Password  string   `json:"PASSWORD"`
	PublicKey string   `json:"PUBLIC_KEY"`
	Email     string   `json:"EMAIL"`
	RoleIDs   []uint64 `json:"ROLE_IDS"`
}

type DatabaseConfig

type DatabaseConfig struct {
	ID           int64     `json:"ID"`
	DatabaseNick string    `json:"DATABASE_NICK"`
	DatabaseName string    `json:"DATABASE_NAME"`
	DatabaseType string    `json:"DATABASE_TYPE"`
	Port         int       `json:"PORT"`
	IPv4Pub      string    `json:"IPV4_PUB"`
	IPv4Priv     string    `json:"IPV4_PRIV"`
	IPv6         string    `json:"IPV6"`
	Password     string    `json:"PASSWORD"`
	Username     string    `json:"USERNAME"`
	PrivateKey   string    `json:"PRIVATE_KEY"`
	Description  string    `json:"DESCRIPTION"`
	CreatedAt    time.Time `json:"CREATED_AT"`
	UpdatedAt    time.Time `json:"UPDATED_AT"`
}

type DockerConfig

type DockerConfig struct {
	ID            int64     `json:"ID"`
	ContainerName string    `json:"CONTAINER_NAME"`
	Port          int       `json:"PORT"`
	IPv4Priv      string    `json:"IPV4_PRIV"`
	IPv6          string    `json:"IPV6"`
	PortIPv6      int       `json:"PORT_IPV6"`
	Password      string    `json:"PASSWORD"`
	Username      string    `json:"USERNAME"`
	PrivateKey    string    `json:"PRIVATE_KEY"`
	Description   string    `json:"DESCRIPTION"`
	CreatedAt     time.Time `json:"CREATED_AT"`
	UpdatedAt     time.Time `json:"UPDATED_AT"`
}

type LinuxConfig

type LinuxConfig struct {
	ID          int64     `json:"ID"`
	Hostname    string    `json:"HOSTNAME"`
	Port        int       `json:"PORT"`
	IPv4Pub     string    `json:"IPV4_PUB"`
	PortActual  int       `json:"PORT_ACTUAL"`
	IPv4Priv    string    `json:"IPV4_PRIV"`
	IPv6        string    `json:"IPV6"`
	PortIPv6    int       `json:"PORT_IPV6"`
	Password    string    `json:"PASSWORD"`
	Username    string    `json:"USERNAME"`
	PrivateKey  string    `json:"PRIVATE_KEY"`
	Description string    `json:"DESCRIPTION"`
	CreatedAt   time.Time `json:"CREATED_AT"`
	UpdatedAt   time.Time `json:"UPDATED_AT"`
}

type Role

type Role struct {
	ID        uint   `json:"ID"`
	Name      string `json:"NAME"`
	Desc      string `json:"DESC"`
	CreatedAt int64  `json:"CREATED_AT"`
	UpdatedAt int64  `json:"UPDATED_AT"`
}

type RomaApiClient

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

func NewRomaApiClient

func NewRomaApiClient(opts RomaApiClientOptions) *RomaApiClient

func (*RomaApiClient) AddSpaceMember

func (c *RomaApiClient) AddSpaceMember(spaceID uint, userID uint) error

func (*RomaApiClient) AddToBlacklist

func (c *RomaApiClient) AddToBlacklist(ip string) error

func (*RomaApiClient) CreateApikey

func (c *RomaApiClient) CreateApikey(req *CreateApikeyRequest) (*Apikey, error)

func (*RomaApiClient) CreateDatabase

func (c *RomaApiClient) CreateDatabase(config *DatabaseConfig, role string, spaceID *uint) error

func (*RomaApiClient) CreateDocker

func (c *RomaApiClient) CreateDocker(config *DockerConfig, role string, spaceID *uint) error

func (*RomaApiClient) CreateLinux

func (c *RomaApiClient) CreateLinux(config *LinuxConfig, role string, spaceID *uint) error

func (*RomaApiClient) CreateResource

func (c *RomaApiClient) CreateResource(resourceType string, data []interface{}, role string, spaceID *uint) error

func (*RomaApiClient) CreateRole

func (c *RomaApiClient) CreateRole(role *Role) error

func (*RomaApiClient) CreateRouter

func (c *RomaApiClient) CreateRouter(config *RouterConfig, role string, spaceID *uint) error

func (*RomaApiClient) CreateSpace

func (c *RomaApiClient) CreateSpace(req *CreateSpaceRequest) (*Space, error)

func (*RomaApiClient) CreateSwitch

func (c *RomaApiClient) CreateSwitch(config *SwitchConfig, role string, spaceID *uint) error

func (*RomaApiClient) CreateUser

func (c *RomaApiClient) CreateUser(req *CreateUserRequest) (*User, error)

func (*RomaApiClient) DelApikey

func (c *RomaApiClient) DelApikey(id uint) error

func (*RomaApiClient) DelDatabase

func (c *RomaApiClient) DelDatabase(id int64) error

func (*RomaApiClient) DelDocker

func (c *RomaApiClient) DelDocker(id int64) error

func (*RomaApiClient) DelLinux

func (c *RomaApiClient) DelLinux(id int64) error

func (*RomaApiClient) DelResource

func (c *RomaApiClient) DelResource(resourceType string, ids []int64) error

func (*RomaApiClient) DelRole

func (c *RomaApiClient) DelRole(id uint) error

func (*RomaApiClient) DelRouter

func (c *RomaApiClient) DelRouter(id int64) error

func (*RomaApiClient) DelSwitch

func (c *RomaApiClient) DelSwitch(id int64) error

func (*RomaApiClient) DelUser

func (c *RomaApiClient) DelUser(id uint) error

func (*RomaApiClient) ExecuteDatabaseQuery

func (c *RomaApiClient) ExecuteDatabaseQuery(id int64, query string) (map[string]interface{}, error)

func (*RomaApiClient) ExecuteDockerCommand

func (c *RomaApiClient) ExecuteDockerCommand(id int64, command string) (map[string]interface{}, error)

func (*RomaApiClient) ExecuteRouterCommand

func (c *RomaApiClient) ExecuteRouterCommand(id int64, command string) (map[string]interface{}, error)

func (*RomaApiClient) ExecuteSwitchCommand

func (c *RomaApiClient) ExecuteSwitchCommand(id int64, command string) (map[string]interface{}, error)

func (*RomaApiClient) GenerateSSHKey

func (c *RomaApiClient) GenerateSSHKey() (map[string]interface{}, error)

func (*RomaApiClient) GetAccessLogs

func (c *RomaApiClient) GetAccessLogs(username, resourceType string, limit int) (map[string]interface{}, error)

func (*RomaApiClient) GetAllBlacklists

func (c *RomaApiClient) GetAllBlacklists(page, pageSize int) (map[string]interface{}, error)

func (*RomaApiClient) GetApikey

func (c *RomaApiClient) GetApikey(id uint) (*Apikey, error)

func (*RomaApiClient) GetApikeys

func (c *RomaApiClient) GetApikeys() ([]Apikey, error)

func (*RomaApiClient) GetAuditLogs

func (c *RomaApiClient) GetAuditLogs(username, resourceType string, limit int) (map[string]interface{}, error)

func (*RomaApiClient) GetBlacklistByIP

func (c *RomaApiClient) GetBlacklistByIP(ip string) (map[string]interface{}, error)

func (*RomaApiClient) GetCredentialLogs

func (c *RomaApiClient) GetCredentialLogs(username string, limit int) (map[string]interface{}, error)

func (*RomaApiClient) GetCurrentUser

func (c *RomaApiClient) GetCurrentUser() (*User, error)

func (*RomaApiClient) GetDatabase

func (c *RomaApiClient) GetDatabase(id int64) (*DatabaseConfig, error)

func (*RomaApiClient) GetDatabaseConnectionInfo

func (c *RomaApiClient) GetDatabaseConnectionInfo(id int64) (map[string]interface{}, error)

func (*RomaApiClient) GetDatabaseTypes

func (c *RomaApiClient) GetDatabaseTypes() ([]string, error)

func (*RomaApiClient) GetDatabases

func (c *RomaApiClient) GetDatabases() ([]DatabaseConfig, error)

func (*RomaApiClient) GetDocker

func (c *RomaApiClient) GetDocker(id int64) (*DockerConfig, error)

func (*RomaApiClient) GetDockerConnectionInfo

func (c *RomaApiClient) GetDockerConnectionInfo(id int64) (map[string]interface{}, error)

func (*RomaApiClient) GetDockers

func (c *RomaApiClient) GetDockers() ([]DockerConfig, error)

func (*RomaApiClient) GetHealth

func (c *RomaApiClient) GetHealth() (map[string]interface{}, error)

func (*RomaApiClient) GetIPInfo

func (c *RomaApiClient) GetIPInfo(ip string) (map[string]interface{}, error)

func (*RomaApiClient) GetLinux

func (c *RomaApiClient) GetLinux(id int64) (*LinuxConfig, error)

func (*RomaApiClient) GetLinuxs

func (c *RomaApiClient) GetLinuxs() ([]LinuxConfig, error)

func (*RomaApiClient) GetMySSHKey

func (c *RomaApiClient) GetMySSHKey() (map[string]interface{}, error)

func (*RomaApiClient) GetResource

func (c *RomaApiClient) GetResource(resourceType string) ([]map[string]interface{}, error)

func (*RomaApiClient) GetResourceByID

func (c *RomaApiClient) GetResourceByID(resourceType string, id int64) (map[string]interface{}, error)

func (*RomaApiClient) GetRole

func (c *RomaApiClient) GetRole(id uint) (*Role, error)

func (*RomaApiClient) GetRoles

func (c *RomaApiClient) GetRoles() ([]Role, error)

func (*RomaApiClient) GetRouter

func (c *RomaApiClient) GetRouter(id int64) (*RouterConfig, error)

func (*RomaApiClient) GetRouterConnectionInfo

func (c *RomaApiClient) GetRouterConnectionInfo(id int64) (map[string]interface{}, error)

func (*RomaApiClient) GetRouters

func (c *RomaApiClient) GetRouters() ([]RouterConfig, error)

func (*RomaApiClient) GetSpace

func (c *RomaApiClient) GetSpace(id uint) (*Space, error)

func (*RomaApiClient) GetSpaces

func (c *RomaApiClient) GetSpaces() ([]Space, error)

func (*RomaApiClient) GetSwitch

func (c *RomaApiClient) GetSwitch(id int64) (*SwitchConfig, error)

func (*RomaApiClient) GetSwitchConnectionInfo

func (c *RomaApiClient) GetSwitchConnectionInfo(id int64) (map[string]interface{}, error)

func (*RomaApiClient) GetSwitches

func (c *RomaApiClient) GetSwitches() ([]SwitchConfig, error)

func (*RomaApiClient) GetSystemInfo

func (c *RomaApiClient) GetSystemInfo() (*SystemInfo, error)

func (*RomaApiClient) GetUser

func (c *RomaApiClient) GetUser(id uint) (*User, error)

func (*RomaApiClient) GetUsers

func (c *RomaApiClient) GetUsers() ([]User, error)

func (*RomaApiClient) GetWindowsConnectionInfo

func (c *RomaApiClient) GetWindowsConnectionInfo(id int64) (map[string]interface{}, error)

func (*RomaApiClient) RemoveFromBlacklist

func (c *RomaApiClient) RemoveFromBlacklist(ip string) error

func (*RomaApiClient) RemoveSpaceMember

func (c *RomaApiClient) RemoveSpaceMember(spaceID uint, userID uint) error

func (*RomaApiClient) UpdateDatabase

func (c *RomaApiClient) UpdateDatabase(config *DatabaseConfig, role string, spaceID *uint) error

func (*RomaApiClient) UpdateDocker

func (c *RomaApiClient) UpdateDocker(config *DockerConfig, role string, spaceID *uint) error

func (*RomaApiClient) UpdateLinux

func (c *RomaApiClient) UpdateLinux(config *LinuxConfig, role string, spaceID *uint) error

func (*RomaApiClient) UpdateProfile

func (c *RomaApiClient) UpdateProfile(req *CreateUserRequest) (*User, error)

func (*RomaApiClient) UpdateResource

func (c *RomaApiClient) UpdateResource(resourceType string, data []interface{}, role string, spaceID *uint) error

func (*RomaApiClient) UpdateRole

func (c *RomaApiClient) UpdateRole(id uint, role *Role) error

func (*RomaApiClient) UpdateRouter

func (c *RomaApiClient) UpdateRouter(config *RouterConfig, role string, spaceID *uint) error

func (*RomaApiClient) UpdateSwitch

func (c *RomaApiClient) UpdateSwitch(config *SwitchConfig, role string, spaceID *uint) error

func (*RomaApiClient) UpdateUser

func (c *RomaApiClient) UpdateUser(id uint, req *CreateUserRequest) (*User, error)

func (*RomaApiClient) UploadSSHKey

func (c *RomaApiClient) UploadSSHKey(publicKey string) error

type RomaApiClientOptions

type RomaApiClientOptions struct {
	APIKey     string
	Host       string
	Port       int
	TLS        bool
	Timeout    time.Duration
	HTTPClient *http.Client
	BaseURL    string
}

type RouterConfig

type RouterConfig struct {
	ID          int64     `json:"ID"`
	RouterName  string    `json:"ROUTER_NAME"`
	WebPort     int       `json:"WEB_PORT"`
	WebUsername string    `json:"WEB_USERNAME"`
	WebPassword string    `json:"WEB_PASSWORD"`
	Port        int       `json:"PORT"`
	IPv4Pub     string    `json:"IPV4_PUB"`
	IPv4Priv    string    `json:"IPV4_PRIV"`
	IPv6        string    `json:"IPV6"`
	Password    string    `json:"PASSWORD"`
	Username    string    `json:"USERNAME"`
	PrivateKey  string    `json:"PRIVATE_KEY"`
	Description string    `json:"DESCRIPTION"`
	CreatedAt   time.Time `json:"CREATED_AT"`
	UpdatedAt   time.Time `json:"UPDATED_AT"`
}

type Space

type Space struct {
	ID          uint      `json:"ID"`
	Name        string    `json:"NAME"`
	Description string    `json:"DESCRIPTION"`
	IsActive    bool      `json:"IS_ACTIVE"`
	CreatedBy   uint      `json:"CREATED_BY"`
	CreatedAt   time.Time `json:"CREATED_AT"`
	UpdatedAt   time.Time `json:"UPDATED_AT"`
}

type SwitchConfig

type SwitchConfig struct {
	ID          int64     `json:"ID"`
	SwitchName  string    `json:"SWITCH_NAME"`
	Port        int       `json:"PORT"`
	IPv4Pub     string    `json:"IPV4_PUB"`
	PortActual  int       `json:"PORT_ACTUAL"`
	IPv4Priv    string    `json:"IPV4_PRIV"`
	IPv6        string    `json:"IPV6"`
	PortIPv6    int       `json:"PORT_IPV6"`
	Password    string    `json:"PASSWORD"`
	Username    string    `json:"USERNAME"`
	Description string    `json:"DESCRIPTION"`
	CreatedAt   time.Time `json:"CREATED_AT"`
	UpdatedAt   time.Time `json:"UPDATED_AT"`
}

type SystemInfo

type SystemInfo struct {
	System     map[string]interface{} `json:"SYSTEM"`
	Statistics map[string]interface{} `json:"STATISTICS"`
	SSHService map[string]interface{} `json:"SSH_SERVICE"`
	Roles      []Role                 `json:"ROLES"`
}

type User

type User struct {
	ID        uint      `json:"ID"`
	Username  string    `json:"USERNAME"`
	Name      string    `json:"NAME"`
	Nickname  string    `json:"NICKNAME"`
	Email     string    `json:"EMAIL"`
	PublicKey string    `json:"PUBLIC_KEY"`
	CreatedAt time.Time `json:"CREATED_AT"`
	UpdatedAt time.Time `json:"UPDATED_AT"`
}

type WindowsConfig

type WindowsConfig struct {
	ID          int64     `json:"ID"`
	Hostname    string    `json:"HOSTNAME"`
	Port        int       `json:"PORT"`
	IPv4Pub     string    `json:"IPV4_PUB"`
	IPv4Priv    string    `json:"IPV4_PRIV"`
	IPv6        string    `json:"IPV6"`
	PortIPv6    int       `json:"PORT_IPV6"`
	Password    string    `json:"PASSWORD"`
	Username    string    `json:"USERNAME"`
	Description string    `json:"DESCRIPTION"`
	CreatedAt   time.Time `json:"CREATED_AT"`
	UpdatedAt   time.Time `json:"UPDATED_AT"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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