Documentation
¶
Index ¶
- Variables
- type ApiExchange
- func (*ApiExchange) Descriptor() ([]byte, []int)deprecated
- func (x *ApiExchange) GetRequest() *ApiRequest
- func (x *ApiExchange) GetResponse() *ApiResponse
- func (*ApiExchange) ProtoMessage()
- func (x *ApiExchange) ProtoReflect() protoreflect.Message
- func (x *ApiExchange) Reset()
- func (x *ApiExchange) String() string
- type ApiRequest
- type ApiResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var File_example_assets_api_proto protoreflect.FileDescriptor
View Source
var File_example_assets_api_request_proto protoreflect.FileDescriptor
View Source
var File_example_assets_api_response_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ApiExchange ¶
type ApiExchange struct {
// request is the API request
Request *ApiRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
// response is the API response
Response *ApiResponse `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
// contains filtered or unexported fields
}
ApiExchange is a demonstrative example of an API call that has a request and a response.
func (*ApiExchange) Descriptor
deprecated
func (*ApiExchange) Descriptor() ([]byte, []int)
Deprecated: Use ApiExchange.ProtoReflect.Descriptor instead.
func (*ApiExchange) GetRequest ¶
func (x *ApiExchange) GetRequest() *ApiRequest
func (*ApiExchange) GetResponse ¶
func (x *ApiExchange) GetResponse() *ApiResponse
func (*ApiExchange) ProtoMessage ¶
func (*ApiExchange) ProtoMessage()
func (*ApiExchange) ProtoReflect ¶
func (x *ApiExchange) ProtoReflect() protoreflect.Message
func (*ApiExchange) Reset ¶
func (x *ApiExchange) Reset()
func (*ApiExchange) String ¶
func (x *ApiExchange) String() string
type ApiRequest ¶
type ApiRequest struct {
Header []string `protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*ApiRequest) Descriptor
deprecated
func (*ApiRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApiRequest.ProtoReflect.Descriptor instead.
func (*ApiRequest) GetHeader ¶
func (x *ApiRequest) GetHeader() []string
func (*ApiRequest) ProtoMessage ¶
func (*ApiRequest) ProtoMessage()
func (*ApiRequest) ProtoReflect ¶
func (x *ApiRequest) ProtoReflect() protoreflect.Message
func (*ApiRequest) Reset ¶
func (x *ApiRequest) Reset()
func (*ApiRequest) String ¶
func (x *ApiRequest) String() string
type ApiResponse ¶
type ApiResponse struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*ApiResponse) Descriptor
deprecated
func (*ApiResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApiResponse.ProtoReflect.Descriptor instead.
func (*ApiResponse) GetCode ¶
func (x *ApiResponse) GetCode() int32
func (*ApiResponse) GetStatus ¶
func (x *ApiResponse) GetStatus() string
func (*ApiResponse) ProtoMessage ¶
func (*ApiResponse) ProtoMessage()
func (*ApiResponse) ProtoReflect ¶
func (x *ApiResponse) ProtoReflect() protoreflect.Message
func (*ApiResponse) Reset ¶
func (x *ApiResponse) Reset()
func (*ApiResponse) String ¶
func (x *ApiResponse) String() string
Click to show internal directories.
Click to hide internal directories.