models

package
v0.0.0-...-564fdec Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright 2015 The etcd Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mul

func Mul(ctx context.Context, args *testutils.ProtoArgs, reply *testutils.ProtoReply) error

Types

type Args

type Args struct {
	A int
	B int
}

参数

type Arith

type Arith int

服务

func (*Arith) Add

func (t *Arith) Add(ctx context.Context, args *Args, reply *Reply) error

func (*Arith) Mul

func (t *Arith) Mul(ctx context.Context, args *Args, reply *Reply) error

func (*Arith) Say

func (t *Arith) Say(ctx context.Context, args *string, reply *string) error

func (*Arith) ThriftMul

func (t *Arith) ThriftMul(ctx context.Context, args *testutils.ThriftArgs_, reply *testutils.ThriftReply) error

type PBArith

type PBArith int

func (*PBArith) Mul

func (t *PBArith) Mul(ctx context.Context, args *testutils.ProtoArgs, reply *testutils.ProtoReply) error

type Reply

type Reply struct {
	C int
}

回复结果

Jump to

Keyboard shortcuts

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