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() (Connection, error) }
Builder represents a connection builder
type Connection ¶
Connection represents a connection
type Content ¶
type Content interface { Hash() hash.Hash Request() requests.Request Requestee() hash.Hash PublicKey() public.Key Server() servers.Server CreatedOn() time.Time }
Content represents a content request
type ContentBuilder ¶
type ContentBuilder interface { Create() ContentBuilder WithRequest(request requests.Request) ContentBuilder WithRequestee(requestee 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.