Documentation ¶
Index ¶
- Variables
- func NewRequest()
- type Option
- type Options
- type Payload
- func (x *Payload) ContentType() string
- func (*Payload) Descriptor() ([]byte, []int)deprecated
- func (x *Payload) Get(k string) string
- func (x *Payload) GetBody() []byte
- func (x *Payload) GetHeader() map[string]string
- func (x *Payload) GetTraceInfo() (*mime.TraceInfo, error)
- func (*Payload) ProtoMessage()
- func (x *Payload) ProtoReflect() protoreflect.Message
- func (x *Payload) Reset()
- func (x *Payload) Set(k, v string)
- func (x *Payload) SetBody(model interface{}) error
- func (x *Payload) String() string
- func (x *Payload) ToObject(model interface{}) error
- type Request
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetCode() int64
- func (x *Response) GetMsg() string
- func (x *Response) GetPayload() *Payload
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (m *Response) SetPayload(payload *Payload)
- func (x *Response) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_trellis_tech_trellis_v1_proto_message_proto protoreflect.FileDescriptor
Functions ¶
func NewRequest ¶
func NewRequest()
Types ¶
type Payload ¶
type Payload struct { Header map[string]string `` /* 153-byte string literal not displayed */ Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Payload) ContentType ¶
func (*Payload) Descriptor
deprecated
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶
func (x *Payload) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { Service *service.Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // Request payload Payload *Payload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetPayload ¶
func (*Request) GetService ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { // @gotags: json:"code" Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // Response payload @gotags: json:"payload" Payload *Payload `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload"` // contains filtered or unexported fields }
func NewResponse ¶
func (*Response) Descriptor
deprecated
func (*Response) GetPayload ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
func (*Response) SetPayload ¶
Click to show internal directories.
Click to hide internal directories.