goracle

package module
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	Props       *stablemap.StableMap[string, string] `json:"props"`
	delphi.Peer `json:"peer"`
}

func NewPeer added in v2.1.0

func NewPeer() *Peer

func PeerFrom added in v2.2.0

func PeerFrom(data []byte, plainMap map[string]string) *Peer

func (Peer) From added in v2.2.0

func (Peer) From(data []byte, plainMap map[string]string) *Peer

func (Peer) FromPrincipal added in v2.1.0

func (Peer) FromPrincipal(prince *Principal) *Peer

func (*Peer) MarshalJSON added in v2.1.0

func (p *Peer) MarshalJSON() ([]byte, error)

func (*Peer) MarshalPEM

func (p *Peer) MarshalPEM() (*pem.Block, error)

func (*Peer) UnmarshalJSON added in v2.1.0

func (p *Peer) UnmarshalJSON(data []byte) error

type PeerStore added in v2.1.0

type PeerStore = store[string, *Peer]

type Principal

type Principal struct {
	delphi.Principal
	Props *stablemap.StableMap[string, string]
	Peers PeerStore
}

func LoadPrincipal added in v2.1.0

func LoadPrincipal(r io.Reader) (*Principal, error)

func NewPrincipal

func NewPrincipal(rand io.Reader, props map[string]string) *Principal

func (*Principal) MarshalJSON added in v2.1.0

func (p *Principal) MarshalJSON() ([]byte, error)

func (*Principal) MarshalPEM

func (p *Principal) MarshalPEM() (*pem.Block, error)

func (*Principal) Save

func (p *Principal) Save(w io.Writer) error

func (*Principal) ToPeer added in v2.1.0

func (p *Principal) ToPeer() *Peer

func (*Principal) UnmarshalJSON added in v2.1.0

func (p *Principal) UnmarshalJSON(data []byte) error

func (*Principal) UnmarshalPEM

func (p *Principal) UnmarshalPEM(block *pem.Block) error

Directories

Path Synopsis
cmd
goracle command

Jump to

Keyboard shortcuts

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