chore: Adds base backend interface.

This commit is contained in:
greysoh 2024-12-01 19:40:23 -05:00
parent c9fed58c6a
commit 0d0f16174b
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
2 changed files with 13 additions and 1 deletions

View file

@ -1 +0,0 @@
package backendparser

View 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
}