protoc-gen-go-micro/examples/go-kit/services/session/service.go

20 lines
377 B
Go
Raw Normal View History

2016-12-13 18:03:16 +03:00
package sessionsvc
import (
"fmt"
"golang.org/x/net/context"
pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb"
2016-12-13 18:03:16 +03:00
)
type Service struct{}
func New() pb.SessionServiceServer {
return &Service{}
}
func (svc *Service) Login(ctx context.Context, in *pb.LoginRequest) (*pb.LoginResponse, error) {
return nil, fmt.Errorf("not implemented")
}