Documentation
¶
Overview ¶
DO NOT EDIT: Client was generated from 'example.proto'
DO NOT EDIT: Router was generated from 'example.proto'
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_example_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a generated client for the service defined in 'Service'. It exposes methods to call procedures available on the service, and handles the packing and unpacking of requests and responses for transport.
func NewClient ¶
func NewClient(i invoker.LambdaInvoker, arn string, unmarshaler func(json.RawMessage) error) Client
NewClient initializes a Client, configuring it to use the provided unmarshaler for unpacking errors to the error implementation of your choice.
type DoRequest ¶
type DoRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DoRequest) Descriptor
deprecated
func (*DoRequest) ProtoMessage ¶
func (*DoRequest) ProtoMessage()
func (*DoRequest) ProtoReflect ¶
func (x *DoRequest) ProtoReflect() protoreflect.Message
type DoResponse ¶
type DoResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*DoResponse) Descriptor
deprecated
func (*DoResponse) Descriptor() ([]byte, []int)
Deprecated: Use DoResponse.ProtoReflect.Descriptor instead.
func (*DoResponse) GetSuccess ¶
func (x *DoResponse) GetSuccess() bool
func (*DoResponse) ProtoMessage ¶
func (*DoResponse) ProtoMessage()
func (*DoResponse) ProtoReflect ¶
func (x *DoResponse) ProtoReflect() protoreflect.Message
func (*DoResponse) Reset ¶
func (x *DoResponse) Reset()
func (*DoResponse) String ¶
func (x *DoResponse) String() string
type Handler ¶
type Handler interface {
Do(context.Context, *DoRequest) (*DoResponse, error)
}
Handler is the exported interface you should implement to handle requests in your service.
Click to show internal directories.
Click to hide internal directories.