Documentation ¶
Index ¶
- func ParseHeader(header *http.Header) (dh, salt, token []byte, err error)
- type Config
- func (c *Config) ExportPrivateKey() string
- func (c *Config) ExportServerKey() string
- func (c *Config) ExportSharedSecret() string
- func (c *Config) GenerateNewKeys() error
- func (c *Config) ImportPrivateKey(privateKeyStr string) error
- func (c *Config) ImportServerKey(serverKeyStr string) error
- func (c *Config) ImportSharedSecret(sharedSecretStr string) error
- type ID
- type MastoPush
- type Payload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { PrivateKey ecdsa.PrivateKey ServerKey ecdsa.PublicKey }
func (*Config) ExportPrivateKey ¶
func (*Config) ExportServerKey ¶
func (*Config) ExportSharedSecret ¶
func (*Config) GenerateNewKeys ¶
func (*Config) ImportPrivateKey ¶
func (*Config) ImportServerKey ¶
func (*Config) ImportSharedSecret ¶
Click to show internal directories.
Click to hide internal directories.