chore: Adds base backend interface.
This commit is contained in:
parent
c9fed58c6a
commit
0d0f16174b
2 changed files with 13 additions and 1 deletions
|
@ -1 +0,0 @@
|
|||
package backendparser
|
13
api/gosrc/backendutil/structure.go
Normal file
13
api/gosrc/backendutil/structure.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package backendutil
|
||||
|
||||
import "git.greysoh.dev/imterah/nextnet/commonbackend"
|
||||
|
||||
type BackendInterface interface {
|
||||
StartBackend() (bool, error)
|
||||
StopBackend() (bool, error)
|
||||
AddConnection(command *commonbackend.AddConnectionCommand) (bool, error)
|
||||
RemoveConnection(command *commonbackend.RemoveConnectionCommand) (bool, error)
|
||||
GetAllConnections() []*commonbackend.ClientConnection
|
||||
CheckParametersForConnections(clientParameters *commonbackend.CheckClientParameters) *commonbackend.CheckParametersResponse
|
||||
CheckParametersForBackend(arguments []byte) *commonbackend.CheckParametersResponse
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue