schemas

package
v0.0.0-...-5dc8409 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmployServer

type EmployServer struct{}

EmployServer is a struct

func (*EmployServer) AddEmploy

AddEmploy 这里实现服务端接口中的方法。

func (*EmployServer) DeleteEmploys

func (s *EmployServer) DeleteEmploys(ctx context.Context, in *employ.EmployRequest) (*employ.EmployResponse, error)

DeleteEmploys is a method used to delete employ

func (*EmployServer) EditEmploy

EditEmploy is a method used to edit employ

func (*EmployServer) GetEmploys

GetEmploys is a method used to get employs

type HelloServer

type HelloServer struct {
}

HelloServer is a struct

func (*HelloServer) SayHello

SayHello is a method used to reply message

type RestFulHello

type RestFulHello struct {
}

RestFulHello is a struct used for implementation of restfull hello program

func (*RestFulHello) SayJSON

func (r *RestFulHello) SayJSON(b *rf.Context)

SayJSON is a method used to reply user hello in json format

func (*RestFulHello) Sayhello

func (r *RestFulHello) Sayhello(b *rf.Context)

Sayhello is a method used to reply user with hello

func (*RestFulHello) Sayhi

func (r *RestFulHello) Sayhi(b *rf.Context)

Sayhi is a method used to reply user with hello world text

func (*RestFulHello) URLPatterns

func (r *RestFulHello) URLPatterns() []rf.Route

URLPatterns helps to respond for corresponding API calls

type RestFulMessage

type RestFulMessage struct {
}

RestFulMessage is a struct used to implement restful message

func (*RestFulMessage) Sayerror

func (r *RestFulMessage) Sayerror(b *rf.Context)

Sayerror is a method used to reply request user with error

func (*RestFulMessage) Sayhi

func (r *RestFulMessage) Sayhi(b *rf.Context)

Sayhi is a method used to reply request user with hello world text

func (*RestFulMessage) Saymessage

func (r *RestFulMessage) Saymessage(b *rf.Context)

Saymessage is used to reply user with his name

func (*RestFulMessage) URLPatterns

func (r *RestFulMessage) URLPatterns() []rf.Route

URLPatterns helps to respond for corresponding API calls

Directories

Path Synopsis
Package employ is a generated protocol buffer package.
Package employ is a generated protocol buffer package.
Package helloworld is a generated protocol buffer package.
Package helloworld is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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