Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { Create() Builder WithContent(content Content) Builder WithSignature(sig signature.Signature) Builder Now() (Request, error) }
Builder represents a request builder
type Content ¶
type Content interface { Hash() hash.Hash Requestor() hash.Hash PublicKey() public.Key Server() servers.Server CreatedOn() time.Time }
Content represents a content request
type ContentBuilder ¶
type ContentBuilder interface { Create() ContentBuilder WithRequestor(requestor hash.Hash) ContentBuilder WithPublicKey(pubKey public.Key) ContentBuilder WithServer(server servers.Server) ContentBuilder CreatedOn(createdOn time.Time) ContentBuilder Now() (Content, error) }
ContentBuilder represents a content builder
func NewContentBuilder ¶
func NewContentBuilder() ContentBuilder
NewContentBuilder creates a new content builder
Click to show internal directories.
Click to hide internal directories.