Documentation
¶
Overview ¶
Copyright © 2019 Annchain Authors <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func MashalFoo(f FooI, b []byte) ([]byte, error)
- type FooI
- type Person
- func (z *Person) DecodeMsg(dc *msgp.Reader) (err error)
- func (z Person) EncodeMsg(en *msgp.Writer) (err error)
- func (p *Person) GetName() string
- func (p *Person) GetType() uint16
- func (z Person) MarshalMsg(b []byte) (o []byte, err error)
- func (z Person) Msgsize() (s int)
- func (p Person) String() string
- func (z *Person) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Student
- func (z *Student) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *Student) EncodeMsg(en *msgp.Writer) (err error)
- func (z *Student) MarshalMsg(b []byte) (o []byte, err error)
- func (z *Student) Msgsize() (s int)
- func (s Student) String() string
- func (z *Student) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Teacher
- func (z *Teacher) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *Teacher) EncodeMsg(en *msgp.Writer) (err error)
- func (z *Teacher) MarshalMsg(b []byte) (o []byte, err error)
- func (z *Teacher) Msgsize() (s int)
- func (s Teacher) String() string
- func (z *Teacher) UnmarshalMsg(bts []byte) (o []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FooI ¶
type Person ¶
func (Person) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Student ¶
func (*Student) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Teacher ¶
func (*Teacher) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
Click to show internal directories.
Click to hide internal directories.