Documentation ¶
Index ¶
- 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 HelloServer
- type RestFulHello
- type RestFulMessage
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 ¶
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 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 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. |