• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / go-tarantool / 12350021459

16 Dec 2024 09:06AM UTC coverage: 73.845%. First build
12350021459

push

github

oleg-jukovec
Release v2.2.0

6042 of 8182 relevant lines covered (73.85%)

4998.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/crud/object.go
1
package crud
2

3
import (
4
        "github.com/vmihailenco/msgpack/v5"
5
)
6

7
// Object is an interface to describe object for CRUD methods. It can be any
8
// type that msgpack can encode as a map.
9
type Object = interface{}
10

11
// Objects is a type to describe an array of object for CRUD methods. It can be
12
// any type that msgpack can encode, but encoded data must be an array of
13
// objects.
14
//
15
// See the reason why not just []Object:
16
// https://github.com/tarantool/go-tarantool/issues/365
17
type Objects = interface{}
18

19
// MapObject is a type to describe object as a map.
20
type MapObject map[string]interface{}
21

22
func (o MapObject) EncodeMsgpack(enc *msgpack.Encoder) {
×
23
        enc.Encode(o)
×
24
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc