example

package
v0.0.0-...-4cf4d8e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Jump to

Keyboard shortcuts

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