hashable

package
v0.0.0-...-15eb78e Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Message string `codec:"msg"`
	// contains filtered or unexported fields
}

Message is used for messages with no special meaning

아무런 의미 없는 메시지 필요 시 사용하는 구조체

func (*Message) CanMarshalMsg

func (_ *Message) CanMarshalMsg(z interface{}) bool

func (*Message) CanUnmarshalMsg

func (_ *Message) CanUnmarshalMsg(z interface{}) bool

func (*Message) MarshalMsg

func (z *Message) MarshalMsg(b []byte) (o []byte)

MarshalMsg implements msgp.Marshaler

func (*Message) MsgIsZero

func (z *Message) MsgIsZero() bool

MsgIsZero returns whether this is a zero value

func (*Message) Msgsize

func (z *Message) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (Message) ToBeHashed

func (msg Message) ToBeHashed() (protocol.HashID, []byte)

ToBeHashed implements the crypto.Hashable interface

func (*Message) UnmarshalMsg

func (z *Message) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

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