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 CreateAt time.Time IsDelete bool }
func FromEntity ¶
type HistoryType ¶
type HistoryType string
const ( HistoryDocument HistoryType = "doc" HistoryProxy HistoryType = "proxy" )
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 *ExistAPI) error ListForService(ctx context.Context, serviceId 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) ListLatestCommitProxy(ctx context.Context, aid ...string) ([]*commit.Commit[Proxy], error) ListLatestCommitDocument(ctx context.Context, aid ...string) ([]*commit.Commit[Document], error) LatestProxy(ctx context.Context, aid string) (*commit.Commit[Proxy], error) LatestDocument(ctx context.Context, aid string) (*commit.Commit[Document], error) GetProxyCommit(ctx context.Context, commitId string) (*commit.Commit[Proxy], error) ListProxyCommit(ctx context.Context, commitId ...string) ([]*commit.Commit[Proxy], error) GetDocumentCommit(ctx context.Context, commitId string) (*commit.Commit[Document], error) ListDocumentCommit(ctx context.Context, commitId ...string) ([]*commit.Commit[Document], error) SaveProxy(ctx context.Context, aid string, data *Proxy) error SaveDocument(ctx context.Context, aid string, data *Document) error Save(ctx context.Context, id string, model *EditAPI) error Create(ctx context.Context, input *CreateAPI) (err error) }
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.