Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConfigNotExist = errors.New("config does not exist")
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App holds all the repository and gRPC server methods
func (*App) Initialise ¶
Initialise the repository and create the gRPC server
type CipherConfig ¶
type Configuration ¶
type Configuration struct { Address string Repo RepositoryConfig Cipher CipherConfig Token TokenConfig }
func ParseConfig ¶
func ParseConfig(path string) (*Configuration, error)
ParseConfig will look for a config file in a specified directory. Returns ErrConfigNotExist when the configuration file can't be found
func (*Configuration) SetDefaults ¶
func (c *Configuration) SetDefaults()
SetDefaults will set the defaults for our config struct
type RefreshConfig ¶
type RepositoryConfig ¶
type TokenConfig ¶
type TokenConfig struct { Refresh RefreshConfig Jwt JWTConfig }
Click to show internal directories.
Click to hide internal directories.