Documentation
¶
Index ¶
- Constants
- Variables
- func Delete(key string) error
- func Dump() (map[string][]byte, error)
- func GetValue(key string) ([]byte, error)
- func Load(key string, response interface{}) error
- func Must(key string, driver display.Driver) string
- func PreVerify(cmd *cobra.Command)
- func Store(key string, payload interface{}) error
- func WriteValue(key string, value []byte) error
- type Config
- type SignedToken
Constants ¶
View Source
const ( AuthenticationServer = "AuthenticationServer" Eana360Server = "Eana360Endpoint" Eana360FarmId = "CurrentFarm" )
Variables ¶
View Source
var ErrValueNotFound = eris.New("value not found for key")
Functions ¶
func WriteValue ¶
Types ¶
type Config ¶
type Config struct {
Server string `json:"server"`
Token string `json:"token"`
ClientId string `json:"client_id"`
ClientSecret string `json:"client_secret"`
Authorizer string `json:"authorizer"`
Audience string `json:"audience"`
Type string `json:"type"`
SignedToken *SignedToken `json:"signed_token"`
}
type SignedToken ¶
type SignedToken struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token,omitempty"`
Scope string `json:"scope,omitempty"`
ExpiresIn int64 `json:"expires_in,omitempty"`
TokenType string `json:"token_type"`
}
func (*SignedToken) Unpack ¶
func (tkn *SignedToken) Unpack() (*jwt.StandardClaims, error)
Click to show internal directories.
Click to hide internal directories.