kratos: Index | Files

package types

import ""


Package Files


type Status Uses

type Status struct {
    // The error code see ecode.Code
    Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
    // A developer-facing error message, which should be in English. Any
    Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
    // A list of messages that carry the error details.  There is a common set of
    // message types for APIs to use.
    Details              []*any.Any `protobuf:"bytes,3,rep,name=details" json:"details,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`

func (*Status) Descriptor Uses

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

func (*Status) GetCode Uses

func (m *Status) GetCode() int32

func (*Status) GetDetails Uses

func (m *Status) GetDetails() []*any.Any

func (*Status) GetMessage Uses

func (m *Status) GetMessage() string

func (*Status) ProtoMessage Uses

func (*Status) ProtoMessage()

func (*Status) Reset Uses

func (m *Status) Reset()

func (*Status) String Uses

func (m *Status) String() string

func (*Status) XXX_DiscardUnknown Uses

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal Uses

func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Status) XXX_Merge Uses

func (dst *Status) XXX_Merge(src proto.Message)

func (*Status) XXX_Size Uses

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal Uses

func (m *Status) XXX_Unmarshal(b []byte) error

Package types imports 4 packages (graph) and is imported by 2 packages. Updated 2020-03-29. Refresh now. Tools for package owners.