MyUploadServer

package
v0.0.0-...-6ff31ab Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHttpErrors

func CheckHttpErrors(e error, writer http.ResponseWriter)

func Start

func Start()

Types

type Args

type Args struct {
	A, B int
}

type Arith

type Arith int

支持的RPC运算方法,所有方法以结构为基础

func (*Arith) Divide

func (t *Arith) Divide(args *Args, quo *Quotient) error

func (*Arith) Multiply

func (t *Arith) Multiply(args *Args, reply *int) error

type Brith

type Brith int

支持多个不同结构方法

func (*Brith) Add

func (e *Brith) Add(in *int, out *int) error

type Quotient

type Quotient struct {
	Quo, Rem int
}

Jump to

Keyboard shortcuts

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