Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PermissionDenied = status.Error(codes.PermissionDenied, "permission denied")
View Source
var ServiceNotFound = status.Error(codes.NotFound, "service not found")
Functions ¶
func NewDBStore ¶
func NewDBStore(dc DatabaseConfig, serverHostPort string) (*gorm_store, error)
Types ¶
type DatabaseConfig ¶
type ImportConfig ¶
type PostgresConfig ¶
type PostgresConfig struct { Host string Port int SslMode string Database string User string Password string }
func DefaultPostgresConfig ¶
func DefaultPostgresConfig() PostgresConfig
func (PostgresConfig) Dialector ¶
func (d PostgresConfig) Dialector() gorm.Dialector
type Service ¶
type Service struct { ID string `gorm:"primaryKey"` AllowedToListen pq.StringArray `gorm:"type:text[]"` AllowedToConnect pq.StringArray `gorm:"type:text[]"` Owner string }
Click to show internal directories.
Click to hide internal directories.