subject

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash []byte

Hash ...

func (Hash) Byte

func (h Hash) Byte() []byte

Byte ...

func (Hash) Hex

func (h Hash) Hex() HashHex

Hex ...

type HashHex

type HashHex string

HashHex ...

func (HashHex) Hash

func (h HashHex) Hash() Hash

Hash ...

func (HashHex) String

func (h HashHex) String() string

String ...

type Map

type Map map[HashHex]*Subject

Map ...

func NewMap

func NewMap() Map

NewMap ...

type Subject

type Subject struct {
	Title       string             `json:"title"`
	Description string             `json:"Desc"`
	Proposer    *identity.Identity `json:"proposer"`
	// contains filtered or unexported fields
}

Subject ...

func NewSubject

func NewSubject(title string, description string, identity *identity.Identity) *Subject

NewSubject ...

func (*Subject) GetDescription

func (s *Subject) GetDescription() string

GetDescription ...

func (*Subject) GetProposer

func (s *Subject) GetProposer() *identity.Identity

GetProposer ...

func (*Subject) GetTitle

func (s *Subject) GetTitle() string

GetTitle ...

func (*Subject) Hash

func (s *Subject) Hash() *Hash

Hash ...

func (*Subject) HashHex

func (s *Subject) HashHex() *HashHex

HashHex .

func (*Subject) JSON

func (s *Subject) JSON() map[string]string

JSON ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL