mirror of https://github.com/status-im/consul.git
Remove the gogo getters
This commit is contained in:
parent
d59364fa7f
commit
0d34390656
|
@ -87,6 +87,94 @@ func (q *QueryOptions) SetFilter(filter string) {
|
|||
q.Filter = filter
|
||||
}
|
||||
|
||||
// GetMaxQueryTime is required to implement blockingQueryOptions
|
||||
func (q *QueryOptions) GetMaxQueryTime() time.Duration {
|
||||
if q != nil {
|
||||
return q.MaxQueryTime
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// GetMinQueryIndex is required to implement blockingQueryOptions
|
||||
func (q *QueryOptions) GetMinQueryIndex() uint64 {
|
||||
if q != nil {
|
||||
return q.MinQueryIndex
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// GetRequireConsistent is required to implement blockingQueryOptions
|
||||
func (q *QueryOptions) GetRequireConsistent() bool {
|
||||
if q != nil {
|
||||
return q.RequireConsistent
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// GetToken is required to implement blockingQueryOptions
|
||||
func (q *QueryOptions) GetToken() string {
|
||||
if q != nil {
|
||||
return q.Token
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// GetAllowStale is required to implement structs.QueryOptionsCompat
|
||||
func (q *QueryOptions) GetAllowStale() bool {
|
||||
if q != nil {
|
||||
return q.AllowStale
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// GetFilter is required to implement structs.QueryOptionsCompat
|
||||
func (q *QueryOptions) GetFilter() string {
|
||||
if q != nil {
|
||||
return q.Filter
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// GetMaxAge is required to implement structs.QueryOptionsCompat
|
||||
func (q *QueryOptions) GetMaxAge() time.Duration {
|
||||
if q != nil {
|
||||
return q.MaxAge
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// GetMaxStaleDuration is required to implement structs.QueryOptionsCompat
|
||||
func (q *QueryOptions) GetMaxStaleDuration() time.Duration {
|
||||
if q != nil {
|
||||
return q.MaxStaleDuration
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// GetMustRevalidate is required to implement structs.QueryOptionsCompat
|
||||
func (q *QueryOptions) GetMustRevalidate() bool {
|
||||
if q != nil {
|
||||
return q.MustRevalidate
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// GetStaleIfError is required to implement structs.QueryOptionsCompat
|
||||
func (q *QueryOptions) GetStaleIfError() time.Duration {
|
||||
if q != nil {
|
||||
return q.StaleIfError
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// GetUseCache is required to implement structs.QueryOptionsCompat
|
||||
func (q *QueryOptions) GetUseCache() bool {
|
||||
if q != nil {
|
||||
return q.UseCache
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLastContact is needed to implement the structs.QueryMetaCompat interface
|
||||
func (q *QueryMeta) SetLastContact(lastContact time.Duration) {
|
||||
q.LastContact = lastContact
|
||||
|
@ -111,6 +199,51 @@ func (q *QueryMeta) GetBackend() structs.QueryBackend {
|
|||
return structs.QueryBackend(0)
|
||||
}
|
||||
|
||||
// SetResultsFilteredByACLs is needed to implement the structs.QueryMetaCompat interface
|
||||
func (q *QueryMeta) SetResultsFilteredByACLs(v bool) {
|
||||
q.ResultsFilteredByACLs = v
|
||||
}
|
||||
|
||||
// GetIndex is required to implement blockingQueryResponseMeta
|
||||
func (q *QueryMeta) GetIndex() uint64 {
|
||||
if q != nil {
|
||||
return q.Index
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// GetConsistencyLevel is required to implement structs.QueryMetaCompat
|
||||
func (q *QueryMeta) GetConsistencyLevel() string {
|
||||
if q != nil {
|
||||
return q.ConsistencyLevel
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// GetKnownLeader is required to implement structs.QueryMetaCompat
|
||||
func (q *QueryMeta) GetKnownLeader() bool {
|
||||
if q != nil {
|
||||
return q.KnownLeader
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// GetLastContact is required to implement structs.QueryMetaCompat
|
||||
func (q *QueryMeta) GetLastContact() time.Duration {
|
||||
if q != nil {
|
||||
return q.LastContact
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// GetResultsFilteredByACLs is required to implement structs.QueryMetaCompat
|
||||
func (q *QueryMeta) GetResultsFilteredByACLs() bool {
|
||||
if q != nil {
|
||||
return q.ResultsFilteredByACLs
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// WriteRequest only applies to writes, always false
|
||||
//
|
||||
// IsRead implements structs.RPCInfo
|
||||
|
|
|
@ -145,13 +145,6 @@ func (m *WriteRequest) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_WriteRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *WriteRequest) GetToken() string {
|
||||
if m != nil {
|
||||
return m.Token
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// ReadRequest is a type that may be embedded into any requests for read
|
||||
// operations.
|
||||
// It is a replacement for QueryOptions now that we no longer need any of those
|
||||
|
@ -199,20 +192,6 @@ func (m *ReadRequest) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_ReadRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ReadRequest) GetToken() string {
|
||||
if m != nil {
|
||||
return m.Token
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ReadRequest) GetRequireConsistent() bool {
|
||||
if m != nil {
|
||||
return m.RequireConsistent
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// QueryOptions is used to specify various flags for read queries
|
||||
type QueryOptions struct {
|
||||
// Token is the ACL token ID. If not provided, the 'anonymous'
|
||||
|
@ -299,83 +278,6 @@ func (m *QueryOptions) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryOptions proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryOptions) GetToken() string {
|
||||
if m != nil {
|
||||
return m.Token
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QueryOptions) GetMinQueryIndex() uint64 {
|
||||
if m != nil {
|
||||
return m.MinQueryIndex
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *QueryOptions) GetMaxQueryTime() time.Duration {
|
||||
if m != nil {
|
||||
return m.MaxQueryTime
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *QueryOptions) GetAllowStale() bool {
|
||||
if m != nil {
|
||||
return m.AllowStale
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *QueryOptions) GetRequireConsistent() bool {
|
||||
if m != nil {
|
||||
return m.RequireConsistent
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *QueryOptions) GetUseCache() bool {
|
||||
if m != nil {
|
||||
return m.UseCache
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *QueryOptions) GetMaxStaleDuration() time.Duration {
|
||||
if m != nil {
|
||||
return m.MaxStaleDuration
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *QueryOptions) GetMaxAge() time.Duration {
|
||||
if m != nil {
|
||||
return m.MaxAge
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *QueryOptions) GetMustRevalidate() bool {
|
||||
if m != nil {
|
||||
return m.MustRevalidate
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *QueryOptions) GetStaleIfError() time.Duration {
|
||||
if m != nil {
|
||||
return m.StaleIfError
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *QueryOptions) GetFilter() string {
|
||||
if m != nil {
|
||||
return m.Filter
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// QueryMeta allows a query response to include potentially
|
||||
// useful metadata about a query
|
||||
type QueryMeta struct {
|
||||
|
@ -430,41 +332,6 @@ func (m *QueryMeta) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryMeta proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryMeta) GetIndex() uint64 {
|
||||
if m != nil {
|
||||
return m.Index
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *QueryMeta) GetLastContact() time.Duration {
|
||||
if m != nil {
|
||||
return m.LastContact
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *QueryMeta) GetKnownLeader() bool {
|
||||
if m != nil {
|
||||
return m.KnownLeader
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *QueryMeta) GetConsistencyLevel() string {
|
||||
if m != nil {
|
||||
return m.ConsistencyLevel
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QueryMeta) GetResultsFilteredByACLs() bool {
|
||||
if m != nil {
|
||||
return m.ResultsFilteredByACLs
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// EnterpriseMeta contains metadata that is only used by the Enterprise version
|
||||
// of Consul.
|
||||
type EnterpriseMeta struct {
|
||||
|
@ -520,49 +387,48 @@ func init() {
|
|||
func init() { proto.RegisterFile("proto/pbcommon/common.proto", fileDescriptor_a6f5ac44994d718c) }
|
||||
|
||||
var fileDescriptor_a6f5ac44994d718c = []byte{
|
||||
// 657 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x4e, 0xdb, 0x4a,
|
||||
0x18, 0x8d, 0xb9, 0x21, 0xd8, 0x13, 0x40, 0xb9, 0x23, 0xee, 0x95, 0x2f, 0xb7, 0x72, 0x90, 0x55,
|
||||
0x55, 0x08, 0xb5, 0xb1, 0x44, 0xbb, 0xa2, 0x2b, 0x12, 0x68, 0x05, 0x8d, 0x4b, 0x3b, 0xa5, 0x42,
|
||||
0xea, 0x6e, 0x62, 0x7f, 0x71, 0xac, 0x3a, 0x1e, 0x77, 0x66, 0x0c, 0xc9, 0x1b, 0x74, 0xd9, 0x25,
|
||||
0xea, 0xaa, 0x8f, 0xc3, 0x92, 0x65, 0x57, 0xb4, 0x25, 0x6f, 0xd0, 0x07, 0xa8, 0x2a, 0x8f, 0x0d,
|
||||
0x98, 0x02, 0x15, 0x5d, 0x25, 0xe7, 0xcc, 0x39, 0xdf, 0x7c, 0x7f, 0x63, 0xf4, 0x7f, 0xc2, 0x99,
|
||||
0x64, 0x4e, 0xd2, 0xf3, 0xd8, 0x70, 0xc8, 0x62, 0x27, 0xff, 0x69, 0x29, 0x16, 0xd7, 0x72, 0xb4,
|
||||
0x68, 0x05, 0x8c, 0x05, 0x11, 0x38, 0x8a, 0xed, 0xa5, 0x7d, 0xc7, 0x4f, 0x39, 0x95, 0xe1, 0x99,
|
||||
0x6e, 0x71, 0x21, 0x60, 0x01, 0xcb, 0x03, 0x65, 0xff, 0x72, 0xd6, 0x1e, 0x22, 0x83, 0xd0, 0xbe,
|
||||
0xdc, 0x8a, 0x7d, 0x18, 0x61, 0x07, 0xd5, 0x3b, 0x1c, 0xa8, 0x04, 0x05, 0x4d, 0x6d, 0x49, 0x5b,
|
||||
0xae, 0xb6, 0xe7, 0xbe, 0x9f, 0x34, 0x8d, 0x1e, 0x8c, 0x12, 0xbe, 0x66, 0x3f, 0xb0, 0x49, 0x59,
|
||||
0x91, 0x19, 0x5c, 0xe6, 0x87, 0xfd, 0x71, 0x6e, 0x98, 0xba, 0xd6, 0x50, 0x52, 0xd8, 0xab, 0xa8,
|
||||
0xb1, 0x4b, 0x79, 0x00, 0x72, 0x83, 0x4a, 0xea, 0x41, 0x2c, 0x81, 0x63, 0x0b, 0xa1, 0x0b, 0xa4,
|
||||
0x2e, 0x35, 0x48, 0x89, 0xb1, 0x57, 0xd0, 0xec, 0x1e, 0x0f, 0x25, 0x10, 0x78, 0x97, 0x82, 0x90,
|
||||
0x78, 0x01, 0x4d, 0xef, 0xb2, 0xb7, 0x10, 0x17, 0xd2, 0x1c, 0xac, 0x55, 0xdf, 0x7f, 0x6a, 0x6a,
|
||||
0xf6, 0x1e, 0xaa, 0x13, 0xa0, 0xfe, 0x6f, 0xa5, 0xf8, 0x3e, 0xf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c3, 0xc4, 0xaa, 0x1c, 0x4e, 0xac, 0xca, 0xf1, 0xc4,
|
||||
0xaa, 0x7c, 0x9e, 0x58, 0x95, 0x37, 0x2b, 0x41, 0x28, 0x07, 0x69, 0xaf, 0xe5, 0xb1, 0xa1, 0x33,
|
||||
0xa0, 0x62, 0x10, 0x7a, 0x8c, 0x27, 0x8e, 0xc7, 0x62, 0x91, 0x46, 0xce, 0xe5, 0x8f, 0x65, 0xaf,
|
||||
0xa6, 0xf0, 0xc3, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xab, 0xfa, 0x4f, 0xec, 0x45, 0x05, 0x00,
|
||||
0x00,
|
||||
// 642 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4f, 0x53, 0xd3, 0x4e,
|
||||
0x18, 0x6e, 0xf8, 0x95, 0x90, 0x6c, 0x81, 0xe9, 0x6f, 0x07, 0x9d, 0x88, 0x4e, 0x60, 0x32, 0x8c,
|
||||
0xc3, 0x30, 0xda, 0xcc, 0xa0, 0x27, 0x3d, 0xd1, 0x82, 0x0e, 0xd8, 0x88, 0xac, 0x38, 0xce, 0x78,
|
||||
0xdb, 0x26, 0x6f, 0xd3, 0x8c, 0x69, 0x36, 0xee, 0x6e, 0xa0, 0xfd, 0x16, 0x1e, 0x3c, 0xf0, 0x91,
|
||||
0x38, 0x72, 0xf4, 0x84, 0x4a, 0xbf, 0x81, 0x27, 0x8f, 0x4e, 0x36, 0x05, 0x82, 0x80, 0x53, 0x4f,
|
||||
0xed, 0xf3, 0xec, 0xf3, 0xbc, 0xfb, 0xfe, 0xdb, 0xa0, 0xfb, 0x29, 0x67, 0x92, 0xb9, 0x69, 0xc7,
|
||||
0x67, 0xfd, 0x3e, 0x4b, 0xdc, 0xe2, 0xa7, 0xa1, 0x58, 0xac, 0x17, 0x68, 0xd1, 0x0e, 0x19, 0x0b,
|
||||
0x63, 0x70, 0x15, 0xdb, 0xc9, 0xba, 0x6e, 0x90, 0x71, 0x2a, 0xa3, 0x73, 0xdd, 0xe2, 0x42, 0xc8,
|
||||
0x42, 0x56, 0x04, 0xca, 0xff, 0x15, 0xac, 0xd3, 0x47, 0x26, 0xa1, 0x5d, 0xb9, 0x9d, 0x04, 0x30,
|
||||
0xc0, 0x2e, 0xaa, 0xb5, 0x38, 0x50, 0x09, 0x0a, 0x5a, 0xda, 0xb2, 0xb6, 0x5a, 0x6d, 0xce, 0xfd,
|
||||
0x3c, 0x5d, 0x32, 0x3b, 0x30, 0x48, 0xf9, 0x33, 0xe7, 0xb1, 0x43, 0xca, 0x8a, 0xdc, 0xe0, 0xb1,
|
||||
0x20, 0xea, 0x0e, 0x0b, 0xc3, 0xd4, 0x8d, 0x86, 0x92, 0xc2, 0x59, 0x47, 0xf5, 0x7d, 0xca, 0x43,
|
||||
0x90, 0x9b, 0x54, 0x52, 0x1f, 0x12, 0x09, 0x1c, 0xdb, 0x08, 0x5d, 0x22, 0x75, 0xa9, 0x49, 0x4a,
|
||||
0x8c, 0xb3, 0x82, 0x66, 0xdf, 0xf3, 0x48, 0x02, 0x81, 0x4f, 0x19, 0x08, 0x89, 0x17, 0xd0, 0xf4,
|
||||
0x3e, 0xfb, 0x08, 0xc9, 0x58, 0x5a, 0x00, 0x67, 0x0f, 0xd5, 0x08, 0xd0, 0xe0, 0xaf, 0x22, 0xfc,
|
||||
0x08, 0xfd, 0x9f, 0x0b, 0x22, 0x0e, 0x2d, 0x96, 0x88, 0x48, 0x48, 0x48, 0xa4, 0xca, 0xda, 0x20,
|
||||
0xd7, 0x0f, 0x9c, 0x2f, 0x55, 0x34, 0xbb, 0x97, 0x01, 0x1f, 0xee, 0xa6, 0x79, 0x1f, 0xc5, 0x2d,
|
||||
0x41, 0x57, 0xd0, 0x9c, 0x17, 0x25, 0x4a, 0x58, 0x6a, 0x03, 0xb9, 0x4a, 0xe2, 0x97, 0x68, 0xd6,
|
||||
0x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2d, 0x05,
|
||||
0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *RaftIndex) Marshal() (dAtA []byte, err error) {
|
||||
|
|
|
@ -31,8 +31,6 @@ message TargetDatacenter {
|
|||
}
|
||||
|
||||
message WriteRequest {
|
||||
option (gogoproto.goproto_getters) = true;
|
||||
|
||||
// Token is the ACL token ID. If not provided, the 'anonymous'
|
||||
// token is assumed for backwards compatibility.
|
||||
string Token = 1;
|
||||
|
@ -45,8 +43,6 @@ message WriteRequest {
|
|||
// It is also similar to WriteRequest. It is a separate type so that in the
|
||||
// future we can introduce fields that may only be relevant for reads.
|
||||
message ReadRequest {
|
||||
option (gogoproto.goproto_getters) = true;
|
||||
|
||||
// Token is the ACL token ID. If not provided, the 'anonymous'
|
||||
// token is assumed for backwards compatibility.
|
||||
string Token = 1;
|
||||
|
@ -58,10 +54,6 @@ message ReadRequest {
|
|||
|
||||
// QueryOptions is used to specify various flags for read queries
|
||||
message QueryOptions {
|
||||
// The autogenerated getters will implement half of the
|
||||
// structs.QueryOptionsCompat interface
|
||||
option (gogoproto.goproto_getters) = true;
|
||||
|
||||
// Token is the ACL token ID. If not provided, the 'anonymous'
|
||||
// token is assumed for backwards compatibility.
|
||||
string Token = 1;
|
||||
|
@ -130,10 +122,6 @@ message QueryOptions {
|
|||
// QueryMeta allows a query response to include potentially
|
||||
// useful metadata about a query
|
||||
message QueryMeta {
|
||||
// The auto-generated getters will implement half of the
|
||||
// structs.QueryMetaCompat interface
|
||||
option (gogoproto.goproto_getters) = true;
|
||||
|
||||
// This is the index associated with the read
|
||||
uint64 Index = 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue