Documentation ¶
Index ¶
- Constants
- func ParseTimestamp(content []byte) (time.Time, error)
- type Board
- func (b Board) After(ts time.Time) bool
- func (b Board) AfterBoard(other Board) bool
- func (b Board) Eq(other Board) bool
- func (b Board) Info() string
- func (b Board) Key() string
- func (b Board) Signature() string
- func (b Board) String() string
- func (b Board) Timestamp() string
- func (b Board) VerifySignature() bool
- type Creator
- type CreatorResult
- type Follow
- type Publisher
- type Signature
Constants ¶
View Source
const ClientCSS = template.CSS(`<style>
:host { all: initial; display: block; box-sizing: border-box; padding: 2rem; }
time { display: none; }
p, h1, h2, h3, h4, h5 { margin: 0 0 2rem 0; }
</style>`)
TODO: validate Preparing each board for display, the client should prepend this default CSS:
View Source
const InfernalKey = "d17eef211f510479ee6696495a2589f7e9fb055c2576749747d93444883e0123"
View Source
const KeyLen = 64
View Source
const MaxBoardLen = 2217
View Source
const MaxKey uint64 = math.MaxUint64 // 1<<64 - 1 = (2**64 - 1)
View Source
const SigLen = 128
View Source
const SpringVersion = "83"
SpringVersion for use in http headers
View Source
const TestPrivate = "3371f8b011f51632fea33ed0a3688c26a45498205c6097c352bd4d079d224419"
View Source
const TestPublic = "ab589f4dde9fce4180fcf42c7b05185b0a02a5d682e353fa39177995083e0583"
View Source
const TimeFormat8601 = "2006-01-02T15:04:05Z" //"YYYY-MM-DDTHH:MM:SSZ"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Creator ¶
type Creator struct { PrivateKey ed25519.PrivateKey Publisher }
func NewCreatorFromKey ¶
func (Creator) ExportPrivateKey ¶
type CreatorResult ¶
func NewCreator ¶
func NewCreator(j int) CreatorResult
type Follow ¶
type Follow struct {
// contains filtered or unexported fields
}
func ParseSpringfileFollows ¶
attempt to conform to the Springfile format of the demo client
type Publisher ¶
func NewPublisherFromKey ¶
Click to show internal directories.
Click to hide internal directories.