Documentation
¶
Index ¶
- type Admin
- type EmployServer
- func (s *EmployServer) AddEmploy(ctx context.Context, in *employ.EmployRequest) (*employ.EmployResponse, error)
- func (s *EmployServer) DeleteEmploys(ctx context.Context, in *employ.EmployRequest) (*employ.EmployResponse, error)
- func (s *EmployServer) EditEmploy(ctx context.Context, in *employ.EmployRequest) (*employ.EmployResponse, error)
- func (s *EmployServer) GetEmploys(ctx context.Context, in *employ.EmployRequest) (*employ.EmployResponse, error)
- type Hello
- type HelloServer
- type Legacy
- type RestFulHello
- type RestFulMessage
- type RestFulRouterA
- type RestFulRouterB
- type TracingHello
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶ added in v1.0.1
type Admin struct{}
Legacy is a struct
func (*Admin) URLPatterns ¶ added in v1.0.1
URLPatterns helps to respond for corresponding API calls
type EmployServer ¶
type EmployServer struct{}
EmployServer is a struct
func (*EmployServer) AddEmploy ¶
func (s *EmployServer) AddEmploy(ctx context.Context, in *employ.EmployRequest) (*employ.EmployResponse, error)
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 ¶
func (s *EmployServer) EditEmploy(ctx context.Context, in *employ.EmployRequest) (*employ.EmployResponse, error)
EditEmploy is a method used to edit employ
func (*EmployServer) GetEmploys ¶
func (s *EmployServer) GetEmploys(ctx context.Context, in *employ.EmployRequest) (*employ.EmployResponse, error)
GetEmploys is a method used to get employs
type Hello ¶ added in v1.0.1
type Hello struct{}
Hello is a struct used for implementation of restfull hello program
func (*Hello) URLPatterns ¶ added in v1.0.1
URLPatterns helps to respond for corresponding API calls
type HelloServer ¶
type HelloServer struct {
}
HelloServer is a struct
func (*HelloServer) SayHello ¶
func (s *HelloServer) SayHello(ctx context.Context, in *helloworld.HelloRequest) (*helloworld.HelloReply, error)
SayHello is a method used to reply message
type Legacy ¶ added in v1.0.1
type Legacy struct{}
Legacy is a struct
func (*Legacy) URLPatterns ¶ added in v1.0.1
URLPatterns helps to respond for corresponding API calls
type RestFulHello ¶
type RestFulHello struct {
}
RestFulHello is a struct used for implementation of restfull hello program
func (*RestFulHello) Root ¶ added in v0.7.1
func (r *RestFulHello) Root(b *rf.Context)
Sayhello is a method used to reply user with hello
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
type RestFulRouterA ¶ added in v1.0.1
type RestFulRouterA struct {
}
RestFulRouterA is a struct used for implementation of restfull router program
func (*RestFulRouterA) Equal ¶ added in v1.0.1
func (r *RestFulRouterA) Equal(context *restful.Context)
Equal is method to compare given num and slice sum
func (*RestFulRouterA) Info ¶ added in v1.0.1
func (r *RestFulRouterA) Info(context *restful.Context)
Info is a method used to reply version information
func (*RestFulRouterA) Operation ¶ added in v1.0.1
func (r *RestFulRouterA) Operation(context *restful.Context)
Operation is method to add two num sum
func (*RestFulRouterA) Say ¶ added in v1.0.1
func (r *RestFulRouterA) Say(context *restful.Context)
Say is method to reply version A say some info
func (*RestFulRouterA) URLPatterns ¶ added in v1.0.1
func (r *RestFulRouterA) URLPatterns() []restful.Route
URLPatterns helps to respond for corresponding API calls
type RestFulRouterB ¶ added in v1.0.1
type RestFulRouterB struct {
}
RestFulRouterB is a struct used for implementation of restfull router program
func (*RestFulRouterB) Equal ¶ added in v1.0.1
func (r *RestFulRouterB) Equal(context *restful.Context)
Equal is method to compare given num and slice product
func (*RestFulRouterB) Info ¶ added in v1.0.1
func (r *RestFulRouterB) Info(context *restful.Context)
Info is a method used to reply version information
func (*RestFulRouterB) Operation ¶ added in v1.0.1
func (r *RestFulRouterB) Operation(context *restful.Context)
Operation is method to calculate two num product
func (*RestFulRouterB) Say ¶ added in v1.0.1
func (r *RestFulRouterB) Say(context *restful.Context)
Say is method to reply version B say some info
func (*RestFulRouterB) URLPatterns ¶ added in v1.0.1
func (r *RestFulRouterB) URLPatterns() []restful.Route
URLPatterns helps to respond for corresponding API calls
type TracingHello ¶ added in v0.8.1
type TracingHello struct {
}
TracingHello is a struct
func (*TracingHello) Trace ¶ added in v0.8.1
func (r *TracingHello) Trace(b *rf.Context)
Trace is a method
func (*TracingHello) URLPatterns ¶ added in v0.8.1
func (r *TracingHello) URLPatterns() []rf.Route
URLPatterns helps to respond for corresponding API calls
Source Files
¶
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. |