refactor foundry lib structure; add transport classes for db,http,websocket; add action interface instead of multiple function that accepts action classes; add changing foundry status on websocket responses
This commit is contained in:
11
internal/foundry/transport/errors.go
Normal file
11
internal/foundry/transport/errors.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package transport
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrorNotAuth = errors.New("Admin is not authenticated")
|
||||
ErrorIsNotReady = errors.New("Connection is not ready for communication")
|
||||
ErrorTimeout = errors.New("Answer has not been received after timeout")
|
||||
ErrorStateTypeNotExist = errors.New("State type does not exists")
|
||||
ErrorAuthPassWrong = errors.New("Authentication password is wrong")
|
||||
)
|
||||
Reference in New Issue
Block a user