google.golang.org/grpc/internal/status.Status.Code (method)

12 uses

	google.golang.org/grpc/internal/status (current package)
		status.go#L72: func (s *Status) Code() codes.Code {
		status.go#L97: 	if s.Code() == codes.OK {
		status.go#L106: 	if s.Code() == codes.OK {
		status.go#L140: 	return fmt.Sprintf("rpc error: code = %s desc = %s", s.Code(), s.Message())
		status.go#L171: 	switch s.Code() {

	google.golang.org/grpc/internal/binarylog
		method_logger.go#L348: 				StatusCode:    uint32(st.Code()),

	google.golang.org/grpc/internal/transport
		controlbuf.go#L782: 		{Name: "grpc-status", Value: strconv.Itoa(int(eas.status.Code()))},
		handler_server.go#L215: 		h.Set("Grpc-Status", fmt.Sprintf("%d", st.Code()))
		http2_server.go#L1046: 	headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-status", Value: strconv.Itoa(int(st.Code()))})

	google.golang.org/grpc
		stream.go#L646: 		code = a.s.Status().Code()
		stream.go#L760: 		if err == nil || (err == io.EOF && a.s.Status().Code() == codes.OK) {

	google.golang.org/grpc/status
		status.go#L116: 		return se.GRPCStatus().Code()