Documentation ¶
Index ¶
- func GetOutboundIP() net.IP
- func GetRandomInt(min int, max int) int
- func HttpError(ctx *gin.Context, status int, err error)
- func JsonString(jsonString string) string
- func ParseInvitationUrl(invitationUrl string) ([]byte, error)
- func PrettyJson(jsonString string) string
- func SetLogLevelDebug(debugMode bool)
- type ControllerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOutboundIP ¶
func GetRandomInt ¶
func JsonString ¶
func ParseInvitationUrl ¶
func PrettyJson ¶
func SetLogLevelDebug ¶
func SetLogLevelDebug(debugMode bool)
Types ¶
type ControllerConfig ¶
type ControllerConfig struct { // Common from json file AgentApiUrl string `json:"AgentApiUrl" validate:"required,url"` WalletType string `json:"WalletType"` Debug bool `json:"Debug"` // Faber only from json file IssuerWebhookUrl string `json:"IssuerWebhookUrl" validate:"omitempty,url"` RevokeAfterIssue bool `json:"RevokeAfterIssue"` PublicInvitation bool `json:"PublicInvitation"` // Alice only from json file HolderWebhookUrl string `json:"HolderWebhookUrl" validate:"omitempty,url"` IssuerContUrl string `json:"IssuerContUrl" validate:"omitempty,url"` }
func (*ControllerConfig) ReadConfig ¶
func (config *ControllerConfig) ReadConfig(fileName string) error
Click to show internal directories.
Click to hide internal directories.