api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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:

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)

func RegisterFormServer

func RegisterFormServer(s *grpc.Server, srv FormServer)

Types

type FormClient

type FormClient interface {
	// regular form
	Submit(ctx context.Context, in *go_api.Request, opts ...grpc.CallOption) (*go_api.Response, error)
	// multipart form
	Multipart(ctx context.Context, in *go_api.Request, opts ...grpc.CallOption) (*go_api.Response, error)
}

func NewFormClient

func NewFormClient(cc *grpc.ClientConn) FormClient

type FormHandler

type FormHandler interface {
	// regular form
	Submit(context.Context, *go_api.Request, *go_api.Response) error
	// multipart form
	Multipart(context.Context, *go_api.Request, *go_api.Response) error
}

type FormServer

type FormServer interface {
	// regular form
	Submit(context.Context, *go_api.Request) (*go_api.Response, error)
	// multipart form
	Multipart(context.Context, *go_api.Request) (*go_api.Response, error)
}

type FormService

type FormService interface {
	// regular form
	Submit(ctx context.Context, in *go_api.Request, opts ...client.CallOption) (*go_api.Response, error)
	// multipart form
	Multipart(ctx context.Context, in *go_api.Request, opts ...client.CallOption) (*go_api.Response, error)
}

func NewFormService

func NewFormService(serviceName string, c client.Client) FormService

Jump to

Keyboard shortcuts

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