Documentation
¶
Index ¶
- Variables
- type HelloWorldService
- type PostRequest
- func (*PostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PostRequest) GetDesc() string
- func (x *PostRequest) GetName() string
- func (x *PostRequest) GetTest() bool
- func (*PostRequest) ProtoMessage()
- func (x *PostRequest) ProtoReflect() protoreflect.Message
- func (x *PostRequest) Reset()
- func (x *PostRequest) String() string
- type PostResponse
- func (*PostResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PostResponse) GetDesc() string
- func (x *PostResponse) GetName() string
- func (*PostResponse) ProtoMessage()
- func (x *PostResponse) ProtoReflect() protoreflect.Message
- func (x *PostResponse) Reset()
- func (x *PostResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_test_proto protoreflect.FileDescriptor
View Source
var RoutesHelloWorld = []*model.Route{}
Functions ¶
This section is empty.
Types ¶
type HelloWorldService ¶
type HelloWorldService interface {
// sample post request
// comment line 1
// comment line 2
PostObject(ctx context.Context, req *PostRequest) (*PostResponse, error)
// sample get request
// comment line 1
GetObject(ctx context.Context, req *PostRequest) (*PostResponse, error)
}
HelloWorldService provides SDK wrapper methods for HelloWorld service
func NewHelloWorldService ¶
func NewHelloWorldService(client auth.Client) HelloWorldService
NewHelloWorldService creates a new SDK wrapper for HelloWorld service function expects to be provided with an auth client to trigger request to service
type PostRequest ¶
type PostRequest struct {
// name of the object
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// description of the object
Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
// optional test parameter
Test *bool `protobuf:"varint,3,opt,name=test,proto3,oneof" json:"test,omitempty"`
// contains filtered or unexported fields
}
func (*PostRequest) Descriptor
deprecated
func (*PostRequest) Descriptor() ([]byte, []int)
Deprecated: Use PostRequest.ProtoReflect.Descriptor instead.
func (*PostRequest) GetDesc ¶
func (x *PostRequest) GetDesc() string
func (*PostRequest) GetName ¶
func (x *PostRequest) GetName() string
func (*PostRequest) GetTest ¶
func (x *PostRequest) GetTest() bool
func (*PostRequest) ProtoMessage ¶
func (*PostRequest) ProtoMessage()
func (*PostRequest) ProtoReflect ¶
func (x *PostRequest) ProtoReflect() protoreflect.Message
func (*PostRequest) Reset ¶
func (x *PostRequest) Reset()
func (*PostRequest) String ¶
func (x *PostRequest) String() string
type PostResponse ¶
type PostResponse struct {
// name of the object
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// description of the object
Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
// contains filtered or unexported fields
}
func (*PostResponse) Descriptor
deprecated
func (*PostResponse) Descriptor() ([]byte, []int)
Deprecated: Use PostResponse.ProtoReflect.Descriptor instead.
func (*PostResponse) GetDesc ¶
func (x *PostResponse) GetDesc() string
func (*PostResponse) GetName ¶
func (x *PostResponse) GetName() string
func (*PostResponse) ProtoMessage ¶
func (*PostResponse) ProtoMessage()
func (*PostResponse) ProtoReflect ¶
func (x *PostResponse) ProtoReflect() protoreflect.Message
func (*PostResponse) Reset ¶
func (x *PostResponse) Reset()
func (*PostResponse) String ¶
func (x *PostResponse) String() string
Click to show internal directories.
Click to hide internal directories.