fetch.go 431 Bytes
Newer Older
Loïck Bonniot's avatar
Loïck Bonniot committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package fixtures

import (
	"dfss/dfssp/api"
)

var FetchFixture map[string]*api.Contract = map[string]*api.Contract{
	"01": &api.Contract{
		ErrorCode: &api.ErrorCode{Code: api.ErrorCode_SUCCESS},
		Json:      []byte{0x48, 0x65, 0x6c, 0x6c, 0x6f}, // Hello
	},
	"02": &api.Contract{
		ErrorCode: &api.ErrorCode{Code: api.ErrorCode_BADAUTH},
	},
	"03": &api.Contract{
		ErrorCode: &api.ErrorCode{Code: api.ErrorCode_INVARG},
	},
}