Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { UUID string Service string Team string Creator string Method []string Path string Protocols []string Upstream string CreateAt time.Time IsDelete bool }
func FromEntity ¶
type HistoryType ¶
type HistoryType string
const ( HistoryRequest HistoryType = "request" HistoryProxy HistoryType = "proxy" HistoryPlugin HistoryType = "plugin" )
type IAPIService ¶
type IAPIService interface { universally.IServiceGet[API] universally.IServiceDelete CountByService(ctx context.Context, service string) (int64, error) CountMapByService(ctx context.Context, service ...string) (map[string]int64, error) Exist(ctx context.Context, aid string, api *Exist) error ListForService(ctx context.Context, serviceId string) ([]*API, error) ListForServices(ctx context.Context, serviceIds ...string) ([]*API, error) GetInfo(ctx context.Context, aid string) (*Info, error) ListInfo(ctx context.Context, aids ...string) ([]*Info, error) ListInfoForService(ctx context.Context, serviceId string) ([]*Info, error) ListInfoForServices(ctx context.Context, serviceIds ...string) ([]*Info, error) ListLatestCommitProxy(ctx context.Context, aid ...string) ([]*commit.Commit[Proxy], error) LatestProxy(ctx context.Context, aid string) (*commit.Commit[Proxy], error) GetProxyCommit(ctx context.Context, commitId string) (*commit.Commit[Proxy], error) ListProxyCommit(ctx context.Context, commitId ...string) ([]*commit.Commit[Proxy], error) SaveProxy(ctx context.Context, aid string, data *Proxy) error ListLatestCommitRequest(ctx context.Context, aid ...string) ([]*commit.Commit[Request], error) GetRequestCommit(ctx context.Context, commitId string) (*commit.Commit[Request], error) ListRequestCommit(ctx context.Context, commitId ...string) ([]*commit.Commit[Request], error) SaveRequest(ctx context.Context, aid string, data *Request) error LatestRequest(ctx context.Context, aid string) (*commit.Commit[Request], error) Save(ctx context.Context, id string, model *Edit) error Create(ctx context.Context, input *Create) (err error) }
type Info ¶
type Info struct { UUID string Name string Description string CreateAt time.Time UpdateAt time.Time Service string Team string Upstream string Creator string Updater string Methods []string Protocols []string Path string Match string Disable bool }
func FromEntityInfo ¶
type PluginSetting ¶
type PluginSetting struct { Disable bool `json:"disable"` Config plugin_model.ConfigType `json:"config"` }
Click to show internal directories.
Click to hide internal directories.