basicmessage

package
v0.30.58 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ISO8601 = "2006-01-02 15:04:05.999999Z"

use generate errors with ACAPy when sending basic messages const ISO8601 = "2006-01-02 15:04:05.999999999Z"

Variables

View Source
var Creator = &Factor{}

Functions

This section is empty.

Types

type AriesTime

type AriesTime struct {
	time.Time
}

todo: move this to right place later!

func (AriesTime) MarshalJSON

func (at AriesTime) MarshalJSON() ([]byte, error)

func (AriesTime) String

func (at AriesTime) String() string

func (*AriesTime) UnmarshalJSON

func (at *AriesTime) UnmarshalJSON(b []byte) (err error)

type Basicmessage

type Basicmessage struct {
	Type     string            `json:"@type,omitempty"`
	ID       string            `json:"@id,omitempty"`
	Thread   *decorator.Thread `json:"~thread,omitempty"`
	Content  string            `json:"content"`
	SentTime AriesTime         `json:"sent_time"`
}

type Factor

type Factor struct{}

func (*Factor) NewMessage

func (f *Factor) NewMessage(data []byte) didcomm.MessageHdr

func (*Factor) NewMsg

func (f *Factor) NewMsg(init didcomm.MsgInit) didcomm.MessageHdr

type Impl

type Impl struct {
	*Basicmessage
}

MARK: Struct

func NewBasicmessage

func NewBasicmessage(r *Basicmessage) *Impl

func NewBasicmessageMsg

func NewBasicmessageMsg(data []byte) *Impl

func (*Impl) FieldObj

func (p *Impl) FieldObj() interface{}

func (*Impl) ID

func (p *Impl) ID() string

func (*Impl) JSON

func (p *Impl) JSON() []byte

func (*Impl) SetID

func (p *Impl) SetID(id string)

func (*Impl) SetType

func (p *Impl) SetType(t string)

func (*Impl) Thread

func (p *Impl) Thread() *decorator.Thread

func (*Impl) Type

func (p *Impl) Type() string

Jump to

Keyboard shortcuts

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