HW13 WIP
parent
1c48e18aed
commit
9c5086d145
|
@ -16,11 +16,6 @@ install-lint-deps:
|
|||
(which golangci-lint > /dev/null) || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.30.0
|
||||
|
||||
generate:
|
||||
protoc --go_out=grpc:internal grpc/calendar.proto
|
||||
|
||||
gen2:
|
||||
protoc -I /usr/local/include -I ${cdir}/grpc --go_out=plugins=grpc:${cdir}/internal/grpc \
|
||||
--grpc-gateway_out=logtostderr=true:${cdir}/internal/grpc \
|
||||
${cdir}/grpc/grpc.proto
|
||||
protoc -I ./grpc --go_out=plugins=grpc:./internal/grpc --grpc-gateway_out=logtostderr=true:./internal/grpc ./grpc/grpc.proto
|
||||
|
||||
.PHONY: build run test lint
|
|
@ -8,9 +8,26 @@ import (
|
|||
|
||||
type Service struct{}
|
||||
|
||||
func (s Service) Create(context.Context, *grpc.Event) (*grpc.EventID, error) {}
|
||||
func (s Service) Update(context.Context, *grpc.EventWthID) (*empty.Empty, error) {}
|
||||
func (s Service) Delete(context.Context, *grpc.EventID) (*empty.Empty, error) {}
|
||||
func (s Service) List(context.Context, *empty.Empty) (*grpc.EventList, error) {}
|
||||
func (s Service) GetByID(context.Context, *grpc.EventID) (*grpc.EventList, error) {}
|
||||
func (s Service) GetByDate(context.Context, *grpc.Date) (*grpc.EventList, error) {}
|
||||
func (s Service) Create(context.Context, *grpc.Event) (*grpc.EventID, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (s Service) Update(context.Context, *grpc.EventWthID) (*empty.Empty, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (s Service) Delete(context.Context, *grpc.EventID) (*empty.Empty, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (s Service) List(context.Context, *empty.Empty) (*grpc.EventList, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (s Service) GetByID(context.Context, *grpc.EventID) (*grpc.EventList, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (s Service) GetByDate(context.Context, *grpc.Date) (*grpc.EventList, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue