Documentation ¶
Index ¶
- type Logic
- func (logic *Logic) AddAgreedTerms(ctx context.Context, account *models.Account, urls []string) error
- func (logic *Logic) DeleteToken(ctx context.Context, token *models.Token) error
- func (logic *Logic) GenerateSigningKey() (ed25519.PrivateKey, error)
- func (logic *Logic) GetPublicKey() (string, error)
- func (logic *Logic) GetTerms(ctx context.Context) models.Terms
- func (logic *Logic) IsEphemeralPubKeyValid(ctx context.Context, pubKey string) (bool, error)
- func (logic *Logic) IsPubKeyValid(ctx context.Context, pubKey string) (bool, error)
- func (logic *Logic) IssueToken(ctx context.Context, mxID string) (*models.Token, error)
- func (logic *Logic) RequireAuth(r *http.Request) (*models.Token, gdhttp.ErrCode, string)
- func (logic *Logic) Start(_ context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logic ¶
type Logic struct {
// contains filtered or unexported fields
}
func (*Logic) AddAgreedTerms ¶
func (*Logic) DeleteToken ¶
func (*Logic) GenerateSigningKey ¶
func (logic *Logic) GenerateSigningKey() (ed25519.PrivateKey, error)
func (*Logic) GetPublicKey ¶
func (*Logic) IsEphemeralPubKeyValid ¶
func (*Logic) IsPubKeyValid ¶
func (*Logic) IssueToken ¶
func (*Logic) RequireAuth ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.