コード例 #1
0
ファイル: main.go プロジェクト: bookerzzz/letmegrpc
func (this *server) Produce(c context.Context, a *serve.Album) (*serve.Album, error) {
	if a.Name == "error" {
		return nil, errors.New("test error")
	}
	a.Producer = append(a.Producer, "My Label")
	return a, nil
}
コード例 #2
0
ファイル: main.go プロジェクト: jmptrader/letmegrpc
func (this *server) Produce(c context.Context, a *serve.Album) (*serve.Album, error) {
	a.Producer = append(a.Producer, "My Label")
	return a, nil
}