portal/interfaces/portal.go

19 lines
282 B
Go
Raw Normal View History

2024-01-12 00:11:53 +00:00
package interfaces
import (
"crypto/ed25519"
2024-01-12 00:11:53 +00:00
"github.com/spf13/viper"
"go.uber.org/zap"
"gorm.io/gorm"
)
type Portal interface {
Initialize() error
Run()
Config() *viper.Viper
Logger() *zap.Logger
Db() *gorm.DB
ApiRegistry() APIRegistry
Identity() ed25519.PrivateKey
2024-01-12 00:11:53 +00:00
}