protoc-gen-go-micro/examples/go-kit/services/session/service.go
2018-09-13 16:38:39 +02:00

20 lines
369 B
Go

package sessionsvc
import (
"fmt"
"golang.org/x/net/context"
pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb"
)
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")
}