errfields

package
v2.0.0-...-fd440d1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

Error fields

Package contains proto representation for fields section inside error response.

Proto file defines FieldsInfo message which is a default representation of field details that conforms REST API Syntax Specification. It has it's own specific marshal/unmarshal logic.

This functionality should not be directly used in your code. Use WithFields function from errors package instead.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_infobloxopen_atlas_app_toolkit_rpc_errfields_error_fields_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FieldInfo

type FieldInfo struct {
	Fields map[string]*StringListValue `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

FieldsInfo is a default representation of field details that conforms REST API Syntax Specification

func (*FieldInfo) AddField

func (m *FieldInfo) AddField(target string, msg string)

func (*FieldInfo) Descriptor deprecated

func (*FieldInfo) Descriptor() ([]byte, []int)

Deprecated: Use FieldInfo.ProtoReflect.Descriptor instead.

func (*FieldInfo) GetFields

func (x *FieldInfo) GetFields() map[string]*StringListValue

func (*FieldInfo) MarshalJSON

func (fi *FieldInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*FieldInfo) ProtoMessage

func (*FieldInfo) ProtoMessage()

func (*FieldInfo) ProtoReflect

func (x *FieldInfo) ProtoReflect() protoreflect.Message

func (*FieldInfo) Reset

func (x *FieldInfo) Reset()

func (*FieldInfo) String

func (x *FieldInfo) String() string

func (*FieldInfo) UnmarshalJSON

func (fi *FieldInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

type StringListValue

type StringListValue struct {
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*StringListValue) Descriptor deprecated

func (*StringListValue) Descriptor() ([]byte, []int)

Deprecated: Use StringListValue.ProtoReflect.Descriptor instead.

func (*StringListValue) GetValues

func (x *StringListValue) GetValues() []string

func (*StringListValue) ProtoMessage

func (*StringListValue) ProtoMessage()

func (*StringListValue) ProtoReflect

func (x *StringListValue) ProtoReflect() protoreflect.Message

func (*StringListValue) Reset

func (x *StringListValue) Reset()

func (*StringListValue) String

func (x *StringListValue) String() string

Jump to

Keyboard shortcuts

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