Documentation ¶
Overview ¶
*
- @Author: Gosin
- @Date: 2019/12/12 15:38
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgsGetStudentByName ¶
type ArgsGetStudentByName struct {
Name string // 姓名,必填
}
type ArgsGetStudents ¶
type ArgsGetStudentsByAge ¶
type ReplyStudent ¶
type Student ¶
type Student interface { // 根据姓名获取单条数据 GetStudentByName(ctx context.Context, args *ArgsGetStudentByName, reply *ReplyStudent) error // 根据年龄获取数据 GetStudentsByAge(ctx context.Context, args *ArgsGetStudentsByAge, reply *[]ReplyStudent) error // 获取所有数据 GetStudents(ctx context.Context, args *ArgsGetStudents, reply *[]ReplyStudent) error }
Click to show internal directories.
Click to hide internal directories.