parent
11e0a4b0df
commit
44f4ff31cb
|
|
@ -2068,7 +2068,7 @@
|
|||
"x-go-package": "github.com/gotify/server/model"
|
||||
},
|
||||
"Paging": {
|
||||
"description": "The Paging holds holds information about the limit and making requests to the next page.",
|
||||
"description": "The Paging holds information about the limit and making requests to the next page.",
|
||||
"type": "object",
|
||||
"title": "Paging Model",
|
||||
"required": [
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package model
|
|||
|
||||
// Paging Model
|
||||
//
|
||||
// The Paging holds holds information about the limit and making requests to the next page.
|
||||
// The Paging holds information about the limit and making requests to the next page.
|
||||
//
|
||||
// swagger:model Paging
|
||||
type Paging struct {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ func (c PluginV1) APIVersion() string {
|
|||
return "v1"
|
||||
}
|
||||
|
||||
// PluginInfo implements conpat/Plugin
|
||||
// PluginInfo implements compat/Plugin
|
||||
func (c PluginV1) PluginInfo() Info {
|
||||
return Info{
|
||||
Version: c.Info.Version,
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ type Notifier interface {
|
|||
Notify(userID uint, message *model.MessageExternal)
|
||||
}
|
||||
|
||||
// Manager is an encapusulating layer for plugins and manages all plugins and its instances.
|
||||
// Manager is an encapsulating layer for plugins and manages all plugins and its instances.
|
||||
type Manager struct {
|
||||
mutex *sync.RWMutex
|
||||
instances map[uint]compat.PluginInstance
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ func (c unreadableReader) Read([]byte) (int, error) {
|
|||
return 0, errors.New("this reader cannot be read")
|
||||
}
|
||||
|
||||
// UnreadableReader returns an unreadadbe reader, used to mock IO issues.
|
||||
// UnreadableReader returns an unreadable reader, used to mock IO issues.
|
||||
func UnreadableReader() io.Reader {
|
||||
return unreadableReader{}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"runtime"
|
||||
)
|
||||
|
||||
// GetProjectDir returns the currect apsolute path of this project
|
||||
// GetProjectDir returns the correct absolute path of this project
|
||||
func GetProjectDir() string {
|
||||
_, f, _, _ := runtime.Caller(0)
|
||||
projectDir, _ := filepath.Abs(path.Join(filepath.Dir(f), "../"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue