Documentation ¶
Index ¶
- Constants
- Variables
- type MemberClaims
- type Service
- func (s *Service) EncodeUserID(img image.Image, id repository.UserID) (*bytes.Buffer, error)
- func (s *Service) GenerateCard(user *repository.User) (image.Image, error)
- func (s *Service) GenerateSigningKey(privateKeyPath string) error
- func (s *Service) LoadSigningKey(privateKeyPath string) error
- func (s *Service) ValidateCard(img image.Image) (repository.UserID, error)
- type TextLayout
Constants ¶
View Source
const DefaultSigningKeySize = 2048
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MemberClaims ¶
type MemberClaims struct { UserID repository.UserID `json:"uid"` jwt.StandardClaims }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(cardLayoutPath, cardFontPath string, cardNicknameLayout TextLayout) *Service
func (*Service) EncodeUserID ¶
func (*Service) GenerateCard ¶
func (*Service) GenerateSigningKey ¶
func (*Service) LoadSigningKey ¶
func (*Service) ValidateCard ¶
Click to show internal directories.
Click to hide internal directories.