student

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GradeSet

type GradeSet struct {
	Grade string
}

func (*GradeSet) DecodeMsg

func (z *GradeSet) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (GradeSet) EncodeMsg

func (z GradeSet) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (GradeSet) MarshalMsg

func (z GradeSet) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (GradeSet) Msgsize

func (z GradeSet) Msgsize() (s int)

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

func (*GradeSet) UnmarshalMsg

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

UnmarshalMsg implements msgp.Unmarshaler

type Student

type Student struct {
	goddd.EventStream
	// contains filtered or unexported fields
}

func NewStudent

func NewStudent(grade string) *Student

func (*Student) Apply

func (z *Student) Apply(eventName string, eventPayload []byte) error

func (*Student) ObjectID

func (s *Student) ObjectID() string

func (*Student) OnGradeSet

func (s *Student) OnGradeSet(event GradeSet) error

func (*Student) SetGrade

func (s *Student) SetGrade(grade string)

Jump to

Keyboard shortcuts

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