Documentation ¶
Index ¶
- func LoggingServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
- type Service
- func (s *Service) AddMap(ctx context.Context, m *apipb.Map) (*apipb.AddMapResponse, error)
- func (s *Service) DeleteMap(ctx context.Context, req *apipb.DeleteMapRequest) (*emptypb.Empty, error)
- func (s *Service) GetMap(ctx context.Context, req *apipb.GetMapRequest) (*apipb.Map, error)
- func (s *Service) ListMaps(ctx context.Context, _ *emptypb.Empty) (*apipb.ListMapsResponse, error)
- func (s *Service) Update(ctx context.Context, m *apipb.Map) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingServerInterceptor ¶
func LoggingServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
LoggingServerInterceptor logs the incoming request, calls the handler it was intended for logs the response it got and then returns the response and any error.
Types ¶
Click to show internal directories.
Click to hide internal directories.