accessToken.go 382 B

12345678910111213141516
  1. package models
  2. import (
  3. "time"
  4. )
  5. // AccessToken - token used to access netmaker
  6. type AccessToken struct {
  7. ID string `json:"id"`
  8. Name string `json:"name"`
  9. UserName string `json:"user_name"`
  10. ExpiresAt time.Time `json:"expires_at"`
  11. LastUsed time.Time `json:"last_used"`
  12. CreatedBy time.Time `json:"created_by"`
  13. CreatedAt time.Time `json:"created_at"`
  14. }