Documentation ¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
github.com/micro/examples/form/api/proto/api.proto
It has these top-level messages:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFormHandler ¶
func RegisterFormHandler(s server.Server, hdlr FormHandler, opts ...server.HandlerOption)
Types ¶
type Form ¶
type Form struct {
FormHandler
}
func (*Form) Multipart ¶
func (h *Form) Multipart(ctx context.Context, in *go_micro_api.Request, out *go_micro_api.Response) error
func (*Form) Submit ¶
func (h *Form) Submit(ctx context.Context, in *go_micro_api.Request, out *go_micro_api.Response) error
type FormClient ¶
type FormClient interface { // regular form Submit(ctx context.Context, in *go_micro_api.Request, opts ...client.CallOption) (*go_micro_api.Response, error) // multipart form Multipart(ctx context.Context, in *go_micro_api.Request, opts ...client.CallOption) (*go_micro_api.Response, error) }
func NewFormClient ¶
func NewFormClient(serviceName string, c client.Client) FormClient
type FormHandler ¶
type FormHandler interface { // regular form Submit(context.Context, *go_micro_api.Request, *go_micro_api.Response) error // multipart form Multipart(context.Context, *go_micro_api.Request, *go_micro_api.Response) error }
Click to show internal directories.
Click to hide internal directories.